MCPcopy Create free account

hub / github.com/Metarget/cloud-native-security-book / functions

Functions136 in github.com/Metarget/cloud-native-security-book

↓ 10 callersMethodgetContainer
(cid string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:379
↓ 7 callersFunctioncommonStorageHandler
(storage pb.Storage)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:336
↓ 5 callersFunction_match_or_exit
(banner_bytes, resp, fail_message="[-] Failed.")
code/0403-CVE-2018-1002105/exploit.py:102
↓ 5 callersFunctionhandleError
handleError will log the specified error if wait is false
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:85
↓ 4 callersFunction_recv_all_once
(ssock, length=4096)
code/0403-CVE-2018-1002105/exploit.py:63
↓ 3 callersFunction_steal_secret
(api_server, secret_file, match_banner)
code/0403-CVE-2018-1002105/exploit.py:121
↓ 3 callersMethodstart
(self)
code/0405-云原生网络攻击/k8s_dns_mitm.py:134
↓ 2 callersFunction_run_with_privilege
(ssock, get_path)
code/0403-CVE-2018-1002105/exploit.py:88
↓ 2 callersFunction_try_to_get_privilege
(ssock, namespace, pod)
code/0403-CVE-2018-1002105/exploit.py:77
↓ 2 callersFunctionaddStorages
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 callersFunctionbuildProcess
(agentProcess *pb.Process, procID string, init bool)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:298
↓ 2 callersFunctioncreateDestinationDir
(dest string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:67
↓ 2 callersMethodcreate_socket
(self)
code/0404-K8s拒绝服务攻击/CVE-2019-9512-poc.py:48
↓ 2 callersMethodexecProcess
Shared function between CreateContainer and ExecProcess, because those expect a process to be run.
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:394
↓ 2 callersFunctionexploit
* 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 callersMethodgenerate_response
(request, ip=None, nx=None)
code/0405-云原生网络攻击/k8s_dns_mitm.py:40
↓ 2 callersMethodonlineCPUMem
(req *pb.OnlineCPUMemRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:225
↓ 2 callersFunctiononlineResources
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 callersMethodpostExecProcess
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 callersFunctionptrace_memcpy
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:118
↓ 2 callersFunctionremoveMounts
(mounts []string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:196
↓ 2 callersFunctionupdateCpusetPath
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 callersFunctionwriteall
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:91
↓ 1 callersFunction_get_http_body
(byte_http)
code/0403-CVE-2018-1002105/exploit.py:56
↓ 1 callersFunction_get_secret
(resp)
code/0403-CVE-2018-1002105/exploit.py:109
↓ 1 callersFunction_save_file
(file_name, content)
code/0403-CVE-2018-1002105/exploit.py:116
↓ 1 callersMethod_set_response
(self)
code/0405-云原生网络攻击/k8s_dns_mitm.py:16
↓ 1 callersMethodapplyNetworkSysctls
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 callersMethodattack
(self)
code/0404-K8s拒绝服务攻击/CVE-2019-9512-poc.py:75
↓ 1 callersFunctionbackdoor_vdso
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:272
↓ 1 callersFunctionbuild_vdso_patch
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:223
↓ 1 callersFunctioncheck
* 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 callersMethodcreateContainerChecks
(req *pb.CreateContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:823
↓ 1 callersFunctioncreate_socket
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:463
↓ 1 callersFunctionensureDestinationExists
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 callersFunctionexploit_helper
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:386
↓ 1 callersFunctionfingerprint_prologue
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:578
↓ 1 callersMethodfinishCreateContainer
(ctr *container, req *pb.CreateContainerRequest, config *configs.Config)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:584
↓ 1 callersMethodforward
(self, req_pkt, verbose)
code/0405-云原生网络攻击/k8s_dns_mitm.py:62
↓ 1 callersMethodgetAgentDetails
(ctx context.Context)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1673
↓ 1 callersFunctiongetPIDIndex
(title string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1036
↓ 1 callersFunctionget_bridge_mac_ip
(verbose)
code/0405-云原生网络攻击/k8s_dns_mitm.py:164
↓ 1 callersFunctionget_coredns_pod_mac_ip
(kube_dns_svc_ip, self_ip, verbose)
code/0405-云原生网络攻击/k8s_dns_mitm.py:152
↓ 1 callersFunctionget_kube_dns_svc_ip
()
code/0405-云原生网络攻击/k8s_dns_mitm.py:147
↓ 1 callersFunctionget_self_mac_ip
()
code/0405-云原生网络攻击/k8s_dns_mitm.py:143
↓ 1 callersFunctionget_vdso_addr
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:113
↓ 1 callersMethodhandleCPUSet
(ociSpec *specs.Spec)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:771
↓ 1 callersMethodhaveSeccomp
()
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1665
↓ 1 callersFunctionisNetworkSysctl
(sysctl string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:746
↓ 1 callersFunctionisSignalHandled
Check is the container process installed the handler for specific signal.
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:977
↓ 1 callersMethodis_local_domain
(domain)
code/0405-云原生网络攻击/k8s_dns_mitm.py:57
↓ 1 callersFunctionis_priviliged
code/0302-开发侧攻击/03-CVE-2019-14271/file-service.c:31
↓ 1 callersFunctionloadKernelModule
(module *pb.KernelModule)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1428
↓ 1 callersFunctionmain
(verbose)
code/0405-云原生网络攻击/k8s_dns_mitm.py:185
↓ 1 callersFunctionmain
()
code/0403-CVE-2018-1002105/exploit.py:144
↓ 1 callersFunctionmain
()
code/0304-运行时攻击/01-容器逃逸/tmp-dot-x.py:8
↓ 1 callersFunctionmount
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 callersFunctionmountStorage
mountStorage performs the mount described by the storage structure.
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:346
↓ 1 callersFunctiononlineCPUResources
(nbCpus uint32)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:135
↓ 1 callersFunctiononlineMemResources
()
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:157
↓ 1 callersFunctionparseMountFlagsAndOptions
(optionList []string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:164
↓ 1 callersFunctionparseOptions
(optionList []string)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/mount.go:183
↓ 1 callersFunctionparse_ip_port
* 1.2.3.4:1337 */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:603
↓ 1 callersFunctionpatch_payload
* A few bytes of the payload must be patched: prologue, ip, and port. */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:185
↓ 1 callersFunctionpatch_payload_helper
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:159
↓ 1 callersMethodpidNsExists
(grpcSpec *pb.Spec)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:839
↓ 1 callersFunctionposixRlimitsToRlimits
(posixRlimits []specs.POSIXRlimit)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:783
↓ 1 callersFunctionrestore_vdso
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:280
↓ 1 callersMethodrollbackFailingContainerCreation
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 callersFunctionsave_orig_vdso
make a copy of vDSO to restore it later */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:204
↓ 1 callersFunctionsetConsoleCarriageReturn
(fd int)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:287
↓ 1 callersMethodspoof
(self, req_pkt)
code/0405-云原生网络攻击/k8s_dns_mitm.py:107
↓ 1 callersMethodupdateContainerConfig
(spec *specs.Spec, config *configs.Config, ctr *container)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:562
↓ 1 callersMethodupdateContainerConfigNamespaces
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 callersMethodupdateContainerConfigPrivileges
(spec *specs.Spec, config *configs.Config)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:549
↓ 1 callersMethodupdateSharedPidNs
(ctr *container)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:850
↓ 1 callersFunctionusage
()
code/0405-云原生网络攻击/k8s_dns_mitm.py:230
↓ 1 callersFunctionwriteSystemProperty
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 callersFunctionyeah
interact with reverse connect shell */
code/0304-运行时攻击/01-容器逃逸/CVE-2016-5195/0xdeadbeef.c:498
MethodCheck
(ctx context.Context, req *pb.CheckRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:367
MethodCloseStdin
(ctx context.Context, req *pb.CloseStdinRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1381
MethodCopyFile
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
MethodCreateContainer
(ctx context.Context, req *pb.CreateContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:615
MethodCreateSandbox
(ctx context.Context, req *pb.CreateSandboxRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1457
MethodDestroySandbox
(ctx context.Context, req *pb.DestroySandboxRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1528
MethodExecProcess
(ctx context.Context, req *pb.ExecProcessRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:890
MethodGetGuestDetails
(ctx context.Context, req *pb.GuestDetailsRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1619
MethodListInterfaces
(ctx context.Context, req *pb.ListInterfacesRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1598
MethodListProcesses
(ctx context.Context, req *pb.ListProcessesRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1047
MethodListRoutes
(ctx context.Context, req *pb.ListRoutesRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1602
MethodMemHotplugByProbe
(ctx context.Context, req *pb.MemHotplugByProbeRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1655
MethodOnlineCPUMem
(ctx context.Context, req *pb.OnlineCPUMemRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1606
MethodPauseContainer
(ctx context.Context, req *pb.PauseContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1241
MethodReadStderr
(ctx context.Context, req *pb.ReadStreamRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1370
MethodReadStdout
(ctx context.Context, req *pb.ReadStreamRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1359
MethodRemoveContainer
(ctx context.Context, req *pb.RemoveContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1265
MethodReseedRandomDev
(ctx context.Context, req *pb.ReseedRandomDevRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1615
MethodResumeContainer
(ctx context.Context, req *pb.ResumeContainerRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1253
MethodSetGuestDateTime
(ctx context.Context, req *pb.SetGuestDateTimeRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:1691
MethodSignalProcess
(ctx context.Context, req *pb.SignalProcessRequest)
code/0304-运行时攻击/02-安全容器逃逸/evil_agent_src/grpc.go:917
next →1–100 of 136, ranked by callers