剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 安全软件 container-auto-scan - Trigge…
container-auto-scan - Trigger vulnerability assessments for containers w 安全软件 点击放大
作者:admin 发布:2026-10-05

container-auto-scan - Trigger vulnerability assessments for containers w

项目说明Lacework Auto Scanner!Build Status!Docker PullsThe aim of this project is to make it simple to trigger assessments for containers which are active…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
81浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-05
人工审核发布
评论区答疑

container-auto-scan - Trigger vulnerability assessments for containers w

项目说明

Lacework Auto Scanner

!Build Status
!Docker Pulls

The aim of this project is to make it simple to trigger assessments for containers which are active in a Lacework account/organization.

How It Works

1. The script will load a local scan cache of pre scanned containers - if a container has been scanned within the previous day it will be skipped by default. This can be o with the --rescan flag.
2. The script will enumerate all integrated container registries, gathering the domains that can be scanned with the Lacework Platform Scanner. This can be o with the --registry <registry_domain> argument.
3. The script will run a query against the specified Lacework account(s) to gather distinct container repository/tag combinations that have run in the en over the same "look-back" period.
4. The script will then issue container scan requests for the un-scanned acti via the Lacework API, or with the integrated Inline Scanner.
- If using the Inline Scanner option, the script will try to fall-back to scan acti without container registry integrations using the Inline Scanner.

The default "look-back" period is 1 day, but can be augmented with the --days <num_of_days> or --hours <num_of_hours> arguments.

How To Run

Local Execution

The easiest way to run this script is by executing it as a container using Lacework API credentials provided from your Lacework CLI configuration:

This will mount your Lacework CLI credentials into the container and execute the scan on the default profile. You can, of course, pass in a different profile with the -p <profile> argument as outlined here. Or you can provide credentials using the --account, --subaccount, --api-key, --api-secret arguments.

The script can also read the standard Lacework CLI en for authentication as outlined here.

If cloning this repository, rather than using a container, you can run the script with the following usage:

Inline Scanner Based Scans

As of 0.3 of this script, scans now support the use of the Lacework Inline Scanner for container assessments. The use case for this is to scan containers which do _not_ have an integrated container registry in a Lacework account. This will also allow scanning of publicly accessible images, as the Inline Scanner will pull them through the local Docker daemon.

The new Inline Scanner functionality can be le either by running the auto_scan.py script with the --inline-scanner argument on a machine with the Inline Scanner installed, or it can be run with a new Docker-in-Docker enabled container.

When executing in this mode, the script will attempt to scan as many container repositories as possible with the Platform scanner, and fall back to the Inline scanner only when required. This behavior can be augmented with the --inline-scanner-only argument which will force all scans through the Inline Scanner.

Due to permissions and dependency requirements for Docker-in-Docker, a new container image has been created (container-auto-scan-inline) which runs as the root user, and installs the necessary components. This also means that the image is much larger than the container-auto-scan image. Both images will follow the same release cycle and tagging con.

In order to run the Docker-in-Docker container, you'll execute the following:

Inline Scanner Auto Integration

As of 0.5 of this script, the Inline Scanner integration (and subsequent access token) can be managed automatically. Simply pass the --auto-integrate-inline-scanner argument to the script, and it will re-use/create Inline Scanner integrations for each Lacework account it needs to interact with. The Inline Scanner integration will appear as lacework-auto-scan by default.

This option is extra beneficial when paired with the --org-level argument, as all inline scanner integrations will be automatically generated across an entire Lacework organization.

#### Things to Note

  • The Inline Scanner based container repository is named container-auto-scan-inline instead of container-auto-scan

  • The Inline Scanner based container runs as root rather than user

  • - As a result, the lacework.toml file is mounted in /root/ rather than /home/user/
  • The Inline Scanner based scans require an access token be provided in one of three ways:

  • - The --inline-scanner-access-token argument
    - The LW_ACCESS_TOKEN en while setting the --inline-scanner argument
    - The --auto-integrate-inline-scanner argument (This will automatically create/re-use an integration per-account)
  • The Inline Scanner is currently limited to 60 scans per hour.

  • If you are using the Inline Scanner to scan against images which may be hosted in a remote registry, credentials can be passed into the scanner as a mount. For example, inserting -v /root/.docker/config.json:/root/.docker/config.json into the example abo pass the current root user's Docker credentials into the container to assume for pull operations.
  • Kubernetes Manifest

    If you wish to run this script continuously, there is an example Kubernetes manifest in the manifests directory which will store your Lacework API credentials as a Kubernetes Secret and then run the container in a Deployment with the -d flag to execute it as a daemon.

    Arguments

    | short | long | default | help |
    | :---- | :-------------------------------- | :------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | -h | --help | | show this help message and exit |
    | | --account | None | The Lacework account to use |
    | | --subaccount | None | The Lacework sub-account to use |
    | | --api-key | None | The Lacework API key to use |
    | | --api-secret | None | The Lacework API secret to use |
    | -p | --profile | None | The Lacework CLI profile to use |
    | | --proxy-scanner | None | The address of a Lacework proxy scanner: http(s)://[address]:[port] |
    | | --cache-timeout | 24 | The number of hours in which to cache scan results before retrying. |
    | | --days | None | The number of days in which to search for acti |
    | | --hours | 0 | The number of hours in which to search for acti |
    | | --registry | None | The container registry domain(s) for which to issue scans (comma separated) |
    | | --rescan | | Issue scan requests for pre scanned containers |
    | | --list-only | | Only list acti for integrated/specified registries (no scans) |
    | | --auto-integrate-inline-scanner | | Automatically create and re-use inline scanner integration(s) |
    | | --inline-scanner | None | Use local Inline Scanner to e images rather than Lacework platform (will attempt to scan images regardless of registry integration status) |
    | | --inline-scanner-path | None | Path to the Inline Scanner executable (default: lw-scanner expected on path) |
    | | --inline-scanner-access-token | None | Inline Scanner authentication token (in production en it is recommended to use the --inline-scanner argument paried with the LW_ACCESS_TOKEN en ) |
    | | --inline-scanner-only | | Use Inline Scanner exculsively (default: use platform scans with inline scanner for unconfigured registries) |
    | | --inline-scanner-prune | | Once scanning is complete, prune images from the local docker registry (equi to docker rmi) |
    | | --org-level | | Iterate through each Account in an Organization (Platform Scanner Only) |
    | -d | --daemon | | Run the scanner as a daemon (executes every 20 minutes) |
    | | --debug | | Enable debug logging |

    En

    Lacework API

    | En | Description | Required |
    | -------------------- | -------------------------------------------------------------------- | :------: |
    | LW_PROFILE | Lacework CLI profile to use (configured at ~/.lacework.toml) | N |
    | LW_ACCOUNT | Lacework account/organization domain (i.e. <account>.lacework.net) | N |
    | LW_SUBACCOUNT | Lacework sub-account | N |
    | LW_API_KEY | Lacework API Access Key | N |
    | LW_API_SECRET | Lacework API Access Secret | N |

    Lacework Inline Scanner

    | En | Description | Required |
    | -------------------- | -------------------------------------------- | :------: |
    | LW_ACCESS_TOKEN | Lacework Inline Scanner authentication token | N |

    Known Issues

  • Due to Lacework API limitations, only 400 containers can be scanned in a single hour.

  • Due to Lacework API limitations, only 5000 scanned container images (for de-duplication) will get returned.

  • Due to Lacework API limitations, only 5000 container repo/tag combinations will get returned per registry.

  • 项目信息

    开发语言:Python

    Star 数:23

    技术要点

    该项目属于安全软件方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Trigger vulnerability assessments for containers which are active in a Lacework account/organization 展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

    从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

    使用与学习建议

    1. 下载源码压缩包,解压到本地环境。

    2. 根据项目类型准备对应的运行环境与依赖。

    3. 按照 README 中的步骤完成配置与部署。

    4. 在隔离的测试环境中运行验证,避免影响生产系统。

    免责声明

    本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

    资源标题container-auto-scan - Trigger vulnerability assessments for containers w
    所属分类安全软件
    发布作者admin
    发布时间2026-10-05 22:53:13
    下载权限 免费下载
    附件数量2 个下载链接
    浏览次数81
    讨论数量0
    主题状态正常讨论中

    本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

    请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

    请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
    登录后查看讨论内容
    本主题共有 0 条讨论
    登录 免费注册
    登录 后才能参与讨论
    下载链接
    会员才能下载
    登录后开通会员
    同分类推荐
    暂无同类资源
    免费登录即可下载
    查看会员
    放大预览

    © 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

    Powered by 酷像SEOv3.0

    网站地图 Sitemap.xml
    首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册