# 权限维持

```
获得 docker CLI、API 或 Socket时，对 docker 镜像进行后门操作，第一步将映像下载到本地“docker pull”，，第二部本地创建以目标镜像为基础的镜像，将后门留进去，“docker build”命令将此 Dockerfile 转换为映像，第三步传回去。
参考
● https://github.com/cr0hn/dockerscan
● https://github.com/RhinoSecurityLabs/ccat
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.heresecurity.wiki/yun-an-quan/docker/quan-xian-wei-chi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
