Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Metarget/cloud-native-security-book
/ functions
Functions
136 in github.com/Metarget/cloud-native-security-book
⨍
Functions
136
◇
Types & classes
17
↓ 10 callers
Method
getContainer
(cid string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:379
↓ 7 callers
Function
commonStorageHandler
(storage pb.Storage)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:336
↓ 5 callers
Function
_match_or_exit
(banner_bytes, resp, fail_message="[-] Failed.")
code/0403-CVE-2018-1002105/exploit.py:102
↓ 5 callers
Function
handleError
handleError will log the specified error if wait is false
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:85
↓ 4 callers
Function
_recv_all_once
(ssock, length=4096)
code/0403-CVE-2018-1002105/exploit.py:63
↓ 3 callers
Function
_steal_secret
(api_server, secret_file, match_banner)
code/0403-CVE-2018-1002105/exploit.py:121
↓ 3 callers
Method
start
(self)
code/0405-云原生网络攻击/k8s_dns_mitm.py:134
↓ 2 callers
Function
_run_with_privilege
(ssock, get_path)
code/0403-CVE-2018-1002105/exploit.py:88
↓ 2 callers
Function
_try_to_get_privilege
(ssock, namespace, pod)
code/0403-CVE-2018-1002105/exploit.py:77
↓ 2 callers
Function
addStorages
addStorages takes a list of storages passed by the caller, and perform the associated operations such as waiting for the device to show up, and mount
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:356
↓ 2 callers
Function
buildProcess
(agentProcess *pb.Process, procID string, init bool)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:298
↓ 2 callers
Function
createDestinationDir
(dest string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:67
↓ 2 callers
Method
create_socket
(self)
code/0404-K8s拒绝服务攻击/CVE-2019-9512-poc.py:48
↓ 2 callers
Method
execProcess
Shared function between CreateContainer and ExecProcess, because those expect a process to be run.
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:394
↓ 2 callers
Function
exploit
* Apply vDSO patches in the correct order. * * During the backdoor step, the payload must be written before hijacking the * function prologue. Duri
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:440
↓ 2 callers
Method
generate_response
(request, ip=None, nx=None)
code/0405-云原生网络攻击/k8s_dns_mitm.py:40
↓ 2 callers
Method
onlineCPUMem
(req *pb.OnlineCPUMemRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:225
↓ 2 callers
Function
onlineResources
Online resources, nbResources specifies the maximum number of resources to online. If nbResources is <= 0 then there is no limit and all resources are
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:96
↓ 2 callers
Method
postExecProcess
Shared function between CreateContainer and ExecProcess, because those expect the console to be properly setup after the process has been started.
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:446
↓ 2 callers
Function
ptrace_memcpy
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:118
↓ 2 callers
Function
removeMounts
(mounts []string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:196
↓ 2 callers
Function
updateCpusetPath
updates a cpuset cgroups path visiting each sub-directory in cgroupPath parent and writing the maximal set of cpus in cpuset.cpus file, finally the cg
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:172
↓ 2 callers
Function
writeall
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:91
↓ 1 callers
Function
_get_http_body
(byte_http)
code/0403-CVE-2018-1002105/exploit.py:56
↓ 1 callers
Function
_get_secret
(resp)
code/0403-CVE-2018-1002105/exploit.py:109
↓ 1 callers
Function
_save_file
(file_name, content)
code/0403-CVE-2018-1002105/exploit.py:116
↓ 1 callers
Method
_set_response
(self)
code/0405-云原生网络攻击/k8s_dns_mitm.py:16
↓ 1 callers
Method
applyNetworkSysctls
libcontainer checks if the container is running in a separate network namespace before applying the network related sysctls. If it sees that the netwo
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:756
↓ 1 callers
Method
attack
(self)
code/0404-K8s拒绝服务攻击/CVE-2019-9512-poc.py:75
↓ 1 callers
Function
backdoor_vdso
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:272
↓ 1 callers
Function
build_vdso_patch
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:223
↓ 1 callers
Function
check
* Check if vDSO is entirely patched. This function is executed in a different * memory space thanks to fork(). Return 0 on success, 1 otherwise. */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:292
↓ 1 callers
Method
createContainerChecks
(req *pb.CreateContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:823
↓ 1 callers
Function
create_socket
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:463
↓ 1 callers
Function
ensureDestinationExists
ensureDestinationExists will recursively create a given mountpoint. If directories are created, their permissions are initialized to mountPerm
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:137
↓ 1 callers
Function
exploit_helper
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:386
↓ 1 callers
Function
fingerprint_prologue
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:578
↓ 1 callers
Method
finishCreateContainer
(ctr *container, req *pb.CreateContainerRequest, config *configs.Config)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:584
↓ 1 callers
Method
forward
(self, req_pkt, verbose)
code/0405-云原生网络攻击/k8s_dns_mitm.py:62
↓ 1 callers
Method
getAgentDetails
(ctx context.Context)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1673
↓ 1 callers
Function
getPIDIndex
(title string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1036
↓ 1 callers
Function
get_bridge_mac_ip
(verbose)
code/0405-云原生网络攻击/k8s_dns_mitm.py:164
↓ 1 callers
Function
get_coredns_pod_mac_ip
(kube_dns_svc_ip, self_ip, verbose)
code/0405-云原生网络攻击/k8s_dns_mitm.py:152
↓ 1 callers
Function
get_kube_dns_svc_ip
()
code/0405-云原生网络攻击/k8s_dns_mitm.py:147
↓ 1 callers
Function
get_self_mac_ip
()
code/0405-云原生网络攻击/k8s_dns_mitm.py:143
↓ 1 callers
Function
get_vdso_addr
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:113
↓ 1 callers
Method
handleCPUSet
(ociSpec *specs.Spec)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:771
↓ 1 callers
Method
haveSeccomp
()
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1665
↓ 1 callers
Function
isNetworkSysctl
(sysctl string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:746
↓ 1 callers
Function
isSignalHandled
Check is the container process installed the handler for specific signal.
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:977
↓ 1 callers
Method
is_local_domain
(domain)
code/0405-云原生网络攻击/k8s_dns_mitm.py:57
↓ 1 callers
Function
is_priviliged
code/0302-开发侧攻击/03-CVE-2019-14271/file-service.c:31
↓ 1 callers
Function
loadKernelModule
(module *pb.KernelModule)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1428
↓ 1 callers
Function
main
(verbose)
code/0405-云原生网络攻击/k8s_dns_mitm.py:185
↓ 1 callers
Function
main
()
code/0403-CVE-2018-1002105/exploit.py:144
↓ 1 callers
Function
main
()
code/0304-运行时攻击/01-容器逃逸/tmp-dot-x.py:8
↓ 1 callers
Function
mount
mount mounts a source in to a destination. This will do some bookkeeping: * evaluate all symlinks * ensure the source exists
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:76
↓ 1 callers
Function
mountStorage
mountStorage performs the mount described by the storage structure.
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:346
↓ 1 callers
Function
onlineCPUResources
(nbCpus uint32)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:135
↓ 1 callers
Function
onlineMemResources
()
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:157
↓ 1 callers
Function
parseMountFlagsAndOptions
(optionList []string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:164
↓ 1 callers
Function
parseOptions
(optionList []string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:183
↓ 1 callers
Function
parse_ip_port
* 1.2.3.4:1337 */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:603
↓ 1 callers
Function
patch_payload
* A few bytes of the payload must be patched: prologue, ip, and port. */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:185
↓ 1 callers
Function
patch_payload_helper
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:159
↓ 1 callers
Method
pidNsExists
(grpcSpec *pb.Spec)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:839
↓ 1 callers
Function
posixRlimitsToRlimits
(posixRlimits []specs.POSIXRlimit)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:783
↓ 1 callers
Function
restore_vdso
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:280
↓ 1 callers
Method
rollbackFailingContainerCreation
rollbackFailingContainerCreation rolls back important steps that might have been performed before the container creation failed. - Destroy the contain
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:572
↓ 1 callers
Function
save_orig_vdso
make a copy of vDSO to restore it later */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:204
↓ 1 callers
Function
setConsoleCarriageReturn
(fd int)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:287
↓ 1 callers
Method
spoof
(self, req_pkt)
code/0405-云原生网络攻击/k8s_dns_mitm.py:107
↓ 1 callers
Method
updateContainerConfig
(spec *specs.Spec, config *configs.Config, ctr *container)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:562
↓ 1 callers
Method
updateContainerConfigNamespaces
This function updates the container namespaces configuration based on the sandbox information. When the sandbox is created, it can be setup in a way t
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:498
↓ 1 callers
Method
updateContainerConfigPrivileges
(spec *specs.Spec, config *configs.Config)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:549
↓ 1 callers
Method
updateSharedPidNs
(ctr *container)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:850
↓ 1 callers
Function
usage
()
code/0405-云原生网络攻击/k8s_dns_mitm.py:230
↓ 1 callers
Function
writeSystemProperty
writeSystemProperty writes the value to a path under /proc/sys as determined from the key. For e.g. net.ipv4.ip_forward translated to /proc/sys/net/ip
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:741
↓ 1 callers
Function
yeah
interact with reverse connect shell */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:498
Method
Check
(ctx context.Context, req *pb.CheckRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:367
Method
CloseStdin
(ctx context.Context, req *pb.CloseStdinRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1381
Method
CopyFile
CopyFile copies files form host to container's rootfs (guest). Files can be copied by parts, for example a file which size is 2MB, can be copied calli
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1704
Method
CreateContainer
(ctx context.Context, req *pb.CreateContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:615
Method
CreateSandbox
(ctx context.Context, req *pb.CreateSandboxRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1457
Method
DestroySandbox
(ctx context.Context, req *pb.DestroySandboxRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1528
Method
ExecProcess
(ctx context.Context, req *pb.ExecProcessRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:890
Method
GetGuestDetails
(ctx context.Context, req *pb.GuestDetailsRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1619
Method
ListInterfaces
(ctx context.Context, req *pb.ListInterfacesRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1598
Method
ListProcesses
(ctx context.Context, req *pb.ListProcessesRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1047
Method
ListRoutes
(ctx context.Context, req *pb.ListRoutesRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1602
Method
MemHotplugByProbe
(ctx context.Context, req *pb.MemHotplugByProbeRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1655
Method
OnlineCPUMem
(ctx context.Context, req *pb.OnlineCPUMemRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1606
Method
PauseContainer
(ctx context.Context, req *pb.PauseContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1241
Method
ReadStderr
(ctx context.Context, req *pb.ReadStreamRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1370
Method
ReadStdout
(ctx context.Context, req *pb.ReadStreamRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1359
Method
RemoveContainer
(ctx context.Context, req *pb.RemoveContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1265
Method
ReseedRandomDev
(ctx context.Context, req *pb.ReseedRandomDevRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1615
Method
ResumeContainer
(ctx context.Context, req *pb.ResumeContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1253
Method
SetGuestDateTime
(ctx context.Context, req *pb.SetGuestDateTimeRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1691
Method
SignalProcess
(ctx context.Context, req *pb.SignalProcessRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:917
next →
1–100 of 136, ranked by callers