专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题轩辕镜像免费版
其他
关于我们网站地图
热门搜索:
integration

zeronorth/integration

zeronorth

ZeroNorth integration CLI

下载次数: 0状态:社区镜像维护者:zeronorth仓库类型:镜像最近更新:3 年前
轩辕镜像,加速的不只是镜像。点击查看
镜像简介
标签下载
镜像标签列表与下载命令
轩辕镜像,加速的不只是镜像。点击查看

ZeroNorth Integration Container

This image can be used to integrate continuous security into your CI/CD pipeline using the ZeroNorth platform. For more information, please visit ZeroNorth at [***]

Environment Variables

System level environment variables

NameDescriptionAllowed ValuesDefault
PROJECT_NAMEA unique name for this project. (Deprecated: Now using policy name.)Sample Project
CYBRIC_USERYour ZeroNorth username (email)
CYBRIC_PASSWORDYour ZeroNorth password
CYBRIC_API_KEYAn alternate way to specify your ZeroNorth credentials
CYBRIC_ENVIRONMENTWhich ZeroNorth environment to use to scan.development, production, {hostname suffix}production
API_URLOverride the API hostname
UI_URLOverride the UI hostname
UPLOAD_URLOverride the upload server hostname
SONARQUBE_URLOverride the hostname to the Sonarqube server
BLACKDUCKHUB_URLOverride the hostname to the BlackDuckHub server
CYBRICFILE_FILENAMEThe name of the Cybricfile to use..cybric.yml
INTEGRATION_NAMEA unique name for artifact integration.Sample Integration
LOG_LEVELThe log level to use.DEBUG, INFO, WARN, ERRORINFO
OUTPUT_FORMATThe format to write the scan results out in.JSON,XMLJSON
WAIT_FOR_COMPLETIONIf set to 'true', the IC will initiate a scan and wait for it to finish. NOTE A value of 'false' is inappropriate in a CI scenario where you need to know whether vulnerabilities were found in order to fail a build.true,falsefalse
STAGEThe stage to execute.SOURCE, BUILD, CONTAINER, HOSTSOURCE
PATH_TARGETSets the url path for a target
POLICY_IDSet to the ID of an existing policy or leave unset to create a new one for this project.Existing policy ID or unsetunset
POLICY_NAMEValue is used to search for the existing policies. If multiple policies are found for a given name it will exit and ask to specifiy the POLICY_ID on the command line.Sample Policy
PORT_TARGETSets the port for a target
PROTOCOL_TARGETSets the protocol used for a targethttps://, http://
TARGET_IDSet the ID of an existing target to use during policy creation (If policy already exists, target from the policy will take precedence).
TARGET_NAMEValue is used to search for existing targets during policy creation. If multiple targets are found for a given name it will exit and ask to specifiy the TARGET_ID on the command line
SCENARIOThe scenario to use to scan your hosts and artifacts. Use the scenarios.py tool (see below) to find a list of activated scenarios and specify its name here. If you don't see the list that you expect, contact your ZeroNorth administrator, or ZeroNorth directly.Scenario Name
HOST_TARGETThe hostname or IP address of the host to scanMust be a publicly visible host
INCLUDE_FILESA comma-separated list of glob specifications for files to include in the scan.
EXCLUDE_FILESA comma-separated list of glob specifications for files to exclude from the scan.
FAIL_ON_HIGH_SEVERITYExit with a failure code if issues are found that cross the specified threshold. If set to '1' or 'CRITICAL', will fail if critical issues are found. If set to '0', will completely disregard issue criticality. If set to 'HIGH', 'MEDIUM', 'LOW' or 'INFO', will fail if issues are found at the specified level or higher.1, 0, CRITICAL, HIGH, MEDIUM, LOW, INFO0
S3_PATHTo pull artifacts from an S3 bucket directly. Use the AWS CLI format for S3 URLs (s3://bucket/directory/ or s3://bucket/filename.tgz)
MSBUILD_OVERRIDEOverride the default MSBuild options for SonarQubeunset
SONARQUBE_OVERRIDEOverride the default SonarQube MSBuild Runner options for SonarQubeunset
TAGSA comma-separated list of tags to add to the scanunset
VERIFY_SSLWhether or not to verify SSL connections to the ZeroNorth hosts. This is useful if you have your own installation of ZeroNorth and you're having problems using the generated root CA certificate.true, falsetrue
ZAP_PORTChanges the zap runners default port8080
CUSTOMER_ARTIFACTS_PATHSee section bellowFile path/shared/customer_artifacts

Docker specific environment variables

These values must be specified if you've set STAGE to container.

NameDescriptionDefault
REGISTRY_USERThe user to authenticate with the registry as.
REGISTRY_PASSWORDThe password of the registry user.
REGISTRY_URLThe URL of the Docker registry where the images are stored.DockerHub
DOCKER_IMAGEThe image to scan. If it's in a private registry, it must be fully qualified.

Specifying proxy settings

If you need to use a proxy server, you can pass the following variables in:

NameDescription
HTTP_PROXYHostname and port to use for proxied HTTP requests
HTTPS_PROXYHostname and port to use for proxied HTTPS requests
NO_PROXYComma-separated list of hosts to bypass the proxy for

Integration points (stages)

Integration with the ZeroNorth platform can happen in 5 separate stages:

  1. Source code scanning immediately after being checked out from source control.
  2. Build artifact scanning immediately after your build process.
  3. Scanning of built Docker images either in a private repository or on DockerHub.
  4. Shallow application scan after deployment. This is used to get a quick assessment of the integrity of newly deployed code by using non-destructive application scans.
  5. Deep vulnerability scan / penn test on a clone of newly deployed infrastructure. This is used when a more comprehensive test is required, which may result in destroyed data or comprimised applications. This is only to be done against a clone of deployed infrastructure.

Setting CYBRIC_ENVIRONMENT

If you're using the ZeroNorth shared SaaS platform, this should always be set to the default value of production (unless you're a ZeroNorth engineer).

If you're running your own private instance of the ZeroNorth platform in AWS, this should be set to the hostname suffix of your installation. For example, if your ZeroNorth hostname is https://fabric.example.com, then set CYBRIC_ENVIRONMENT to example.com. If your installation is at https://fabric.cybric.company.com then set CYBRIC_ENVIRONMENT to cybric.company.com

If you're running ZeroNorth in a virtual machine and the ZeroNorth services don't have the standard hostnames (api, fabric, uploads), then set CYBRIC_ENVIRONMENT to vm and set the following variables to their correct values:

  • API_URL
  • UI_URL
  • UPLOAD_URL

For example: CYBRIC_ENVIRONMENT=vm API_URL=http://api:7123 UI_URL=http://ui:7223 UPLOAD_URL=http://upload:1080

By default the Bamboo service (API) runs on port 7123, Burlap (UI) runs on 7223 and the upload service runs on 1080. If these services are being load balanced, then just set the URLs to point at the load ***s.

Including and excluding files

You can limit the number of files sent to ZeroNorth by using the INCLUDE_FILES and EXCLUDE_FILES variables. These parameters use the Unix globbing syntax.

The values passed to these variables can be a comma-separated list if you need to specify multiple types of files (eg, *.js,*.py,*.html).

If neither variable is specified, all files within the code directory will be included and sent to ZeroNorth.

If only the INCLUDE_FILES variable is specified, then only files matching the specified patterns will be included. If only the EXCLUDE_FILES variable is specified, all files with the exception of files matching the pattern will be included. If both are specified, the files in the code directory will first be filtered by the patterns in INCLUDE_FILES and then be filtered by the patterns in EXCLUDE_FILES.

If you'd like to see whether a file was included or excluded, enable debugging by setting LOG_LEVEL to debug. NOTE: This will be VERY noisy and is only recommended for debugging purposes.

Retrieving a list of available scenarios

The SCENARIO variable will need to be configured with the name of the scenario that you'd like to use to scan your hosts and artifacts. To get a list of what's currently available, run the scenarios script:

Do not specify both a SCENARIO and a POLICY_ID since these are mutually exclusive.

bash
docker run -e CYBRIC_USER=[your zeronorth username] -e CYBRIC_PASSWORD=[your zeronorth password] zeronorth/integration:latest python scenarios.py

We will return the names of the scenarios that your administrator has activated and what they can be applied to. Use this table to map a scenario's type to the STAGE that it can be run with.

TypeStage
repositorySOURCE
buildBUILD
containerCONTAINER
instanceHOST

Volumes

The container requires 2 bind mounted volumes:

/code is the location to your source or build artifacts.

/results is the location where the container will dump the scan results to a file named scan.out

NOTE: If you're using S3_PATH, then you don't need to mount the /code volume since your code will be pulled from S3.

You can optionally add a third volume mount to use a custom certificate authority. This is useful if you're running a private ZeroNorth instance and you've signed your SSL certificates with your own certificate authority. This will enable the integration container to trust your CA.

Create a folder on your local or build machine containing your CA root certificate in pem format and mount that directory to /usr/local/share/ca-certificates

For example:

bash
-v /mnt/custom_ca:/usr/local/share/ca-certificates/

On startup, the integration container will copy any certificates in /mnt/custom_ca to the trust store so that HTTPS calls to the ZeroNorth API will validate properly.

Mounting a CUSTOMER_ARTIFACTS_PATH

The CUSTOMER_ARTIFACTS_PATH should reference a customer_artifacts_folder which contains artifacts that will be presented to the runner. The folder structure described bellow is important for the runner to see those artifact(s).

Adding a customer provided certificate (PEM format). The certificate needs to be named certificate.

customer_artifacts_folder/certificates/certificate

Adding a license which is required for a specific tool scan. License name specified during license creation on the ZeroNorth platform.

customer_artifacts_folder/license/<License Name>

Adding ZAP context files (auth script, context, url file, etc). The artifact name specified during artifact creation on the ZeroNorth platform.

customer_artifacts_folder/authScript/<Artifact Name>
customer_artifacts_folder/context/<Artifact Name>
customer_artifacts_folder/urlFile/<Artifact Name>

Adding a ZAP hosts file. The hosts file name is specified during creation of the host file on the ZeroNorth platform.

customer_artifacts_folder/hosts/<Hosts file name>

Scanning source code

Performing a source code scan is done by setting the STAGE environment variable to SOURCE and calling the integration container:

bash
docker run -v [host location of checked out source code]:/code -v [host location of results]:/results -e LOG_LEVEL=DEBUG -e CYBRIC_USER=[your zeronorth username] -e CYBRIC_PASSWORD=[your zeronorth password] -e SCENARIO=brakeman-default -e STAGE=SOURCE zeronorth/integration:latest python cybric.py

For example, if I had just completed a step to check out source code from another container, and that container had written the source code to a bind-mounted volume on the Docker host called /mnt/shared/source, my source code scan would be executed like this:

bash
docker run -v /mnt/shared/source:/code -v /mnt/shared/results:/results -e LOG_LEVEL=DEBUG -e CYBRIC_USER=barry@cybric.io -e CYBRIC_PASSWORD=****** -e SCENARIO=brakeman-default -e STAGE=SOURCE zeronorth/integration:latest python cybric.py

The source code will be compressed and sent to ZeroNorth for scanning and analysis. The results of this scan will be stored on the ZeroNorth platform, ingested for analytic analysis and results returned for consumption by your system. Results will be returned as a JSON structure for easy programmatic parsing.

If you host your source and build artifacts in S3, you can pull them down by referencing them with the S3_PATH environment variable. If you need to specify your AWS IAM credentials, you can also pass in AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

If your code lives in a subdirectory on S3, scan it like this:

bash
docker run -it -e AWS_ACCESS_KEY_ID=your-access-key-here -e AWS_SECRET_ACCESS_KEY=your-secret-key-here -e SCENARIO=sonarqube-agent -e CYBRIC_USER=barry@cybric.io -e CYBRIC_PASSWORD=****** -e STAGE=source -e S3_PATH=s3://your-bucket-name/directory-name/ zeronorth/integration:latest python cybric.py

You can also reference .zip and .tgz/.tar.gz files in S3 and they will be pulled down. For .tgz/.tar.gz files, they are sent directly to ZeroNorth for scanning, but .zip files need to be downloaded and recompressed as .tgz files.

NOTE Make sure that your archive has all of the code that you want to scan under a single top-level directory.

If you set FAIL_ON_HIGH_SEVERITY to 1 then any high severity issues found during scan will cause the container to exit with a code of 1. This can be helpful where the ZeroNorth integration container is used in a build pipeline and you'd like the pipeline to fail when high severity errors are found.

Scanning hosts for vulnerabilities

In addition to scanning source, build and container artifacts for vulnerabilities, ZeroNorth can also scan deployed applications for vulnerabilities as well.

To do an nmap discovery scan of a server

bash
docker run -v /mnt/shared/results:/results -e LOG_LEVEL=DEBUG -e CYBRIC_USER=[your zeronorth username] -e CYBRIC_PASSWORD=[your zeronorth password] -e SCENARIO=nmap-discovery -e STAGE=HOST HOST_TARGET=[ip or host of the server to scan] zeronorth/integration:latest python cybric.py

NOTE Be extremely careful about using some of the more invasive tools and configurations against important hosts. Many of these tools have aggressive settings that will actively try to compromise any exploits that they find, which can be very useful in penetration testing.

ZeroNorth Applications

If you have an Application in your ZeroNorth account and you'd like to ensure that none of the Targets within them have vulnerabilities above a criticality threshold, you can call the checkapp.py script.

Go to FabricOPS > Application, locate your appication, and then grab the application's ID by clicking the icon next to the application's name. Run the checkapp.py script as follows:

bash
docker run -e APPLICATION_ID={your applications ID} -e CYBRIC_API_KEY={your API key} FAIL_ON_HIGH_SEVERITY={severity level to fail on} zeronorth/integration:latest python checkapp.py

The severity level can be one of INFO, LOW, MEDIUM, HIGH or CRITICAL. If any of the Targets in the specified Application have vulnerabilities at or exceeding the specified criticality level, the command will exit with a status code of 1. This will allow you to fail builds based on vulnerabilities across many targets and ensure that the entire Application is secure.

Cybricfile

Instead of specifying the scan parameters using environment variables, you can also use a Cybricfile. A Cybricfile is a YAML file checked in at the base of your project's code tree named .cybric.yml.

yaml
version: '1.0'
output_format: json
log_level: DEBUG
source:
  project_name: Project A Source
  fail_on_high_severity: true
  include_files:
    - src/**
  exclude_files:
    - build/**
  scenario: brakeman-default

build:
  project_name: Project A Build

container:
  project_name: Project A Container
  scenario: docker-image-scan-default
  image: mycompany/projecta:latest

host:
  project_name: Project A Web Server
  scenario: nmap-discovery
  host_target: staging.mycompany.com

The top-level keys correlate to the STAGE. To execute the source stage with this file checked into the project tree, execute the command like this:

bash
docker run -v [host location of checked out source code]:/code -v [host location of results]:/results -e LOG_LEVEL=DEBUG -e CYBRIC_USER=[your zeronorth username] -e CYBRIC_PASSWORD=[your zeronorth password] -e STAGE=SOURCE zeronorth/integration:latest python cybric.py

NOTE: Environment variables passed in will override any values specified in the Cybricfile.

NOTE: You can not specify keys or secrets in the Cybricfile. This was done intentionally to prevent secrets from being checked into version control. All keys & secrets must be passed in as environment variables.

Retrieving scan results

The results will be written to /results/scan.out in the format specified in OUTPUT_FORMAT.

Windows EXE Creation

Windows 10 has some... complexities with pyinstaller

PreInstall Steps

Install python3.6.2

[***]

Install Windows 10 SDK

[***]

Set env path for python, python scripts and windows 10 sdk x64 dlls

C:\Users\Administrator\AppData\Local\Programs\Python\Python36
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\Scripts
C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\Dlls\x64

Install virtualenv

cmd
pip install virtualenv==16.1

Activate a new virtualenv in the integration code directory

cmd
cd C:\path\to\integration
virtualenv venv
. venv\Scripts\activate

Install pycurl wheel since it has dependency issues on Windows otherwise

cmd
pip install lib\pycurl-7.43.0-cp36-cp36m-win_amd64.whl

Install dependencies

cmd
pip install -r requirements.txt
python setup.py install
pip install pywin32

Install pyinstaller

cmd
pip install pyinstaller

Run pyinstaller to create a single exe binary to run on windows 10 based systems

cmd
pyinstaller --onefile --additional-hooks-dir=.\hooks --distpath=.\bin\windows_amd64 cybric_cli.py --path "C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\Dlls\x64"

Linux CLI Creation

Before you can create the CLI, you will need credentials to the ZeroNorth Nexus server. Export your Nexus username and password before running the following make task:

export NEXUS_USERNAME={your nexus username}
export NEXUS_PASSWORD={your nexus password}

Once this is done, you can now run make centos_cli for a CentOS/RHEL version or make ubuntu_cli for an Ubuntu/Debian version.

When it finishes, you will have a file called cybric_cli in the appropriate folder in bin (eg. bin/centos7_amd64 or bin/ubuntu_amd64). It does use Docker to build the CLI, so you will need to have the Docker daemon running.

Copyright © 2017, 2018, 2019 ZeroNorth, Inc. All rights reserved.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 integration 镜像标签

docker pull docker.xuanyuan.run/zeronorth/integration:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull zeronorth/integration:<标签>

更多 integration 镜像推荐

okteto/integration logo

okteto/integration

okteto
暂无描述
781 次下载
3 年前更新
concourse/integration logo

concourse/integration

concourse
暂无描述
403 次下载
6 年前更新
bosh/integration logo

bosh/integration

bosh
暂无描述
100万+ 次下载
1 年前更新
matsapps/integration logo

matsapps/integration

matsapps
mats integration apps
1万+ 次下载
4 年前更新
mikromaxdocker/integration logo

mikromaxdocker/integration

mikromaxdocker
暂无描述
1万+ 次下载
1 个月前更新
interop2023/integration logo

interop2023/integration

interop2023
暂无描述
1万+ 次下载
3 年前更新

查看更多 integration 相关镜像

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

Harbor 镜像源配置

Harbor Proxy Repository 对接专属域名

Portainer 镜像源配置

Portainer Registries 加速拉取

Nexus 镜像源配置

Nexus3 Docker Proxy 内网缓存

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

配置了专属域名后,docker search 为什么会报错?

docker search 限制

Docker Hub 上有的镜像,为什么在轩辕镜像网站搜不到?

站内搜不到镜像

机器不能直连外网时,怎么用 docker save / load 迁镜像?

离线 save/load

docker pull 拉插件报错(plugin v1+json)怎么办?

插件要用 plugin install

WSL 里 Docker 拉镜像特别慢,怎么排查和优化?

WSL 拉取慢

轩辕镜像安全吗?如何用 digest 校验镜像没被篡改?

安全与 digest

第一次用轩辕镜像拉 Docker 镜像,要怎么登录和配置?

新手拉取配置

轩辕镜像合规吗?轩辕镜像的合规是怎么做的?

镜像合规机制

轩辕镜像支持 docker push 上传本地镜像吗?

不支持 push

错误码与失败问题

docker pull 提示 manifest unknown 怎么办?

manifest unknown

docker pull 提示 no matching manifest 怎么办?

no matching manifest(架构)

镜像已拉取完成,却提示 invalid tar header 或 failed to register layer 怎么办?

invalid tar header(解压)

Docker pull 时 HTTPS / TLS 证书验证失败怎么办?

TLS 证书失败

Docker pull 时 DNS 解析超时或连不上仓库怎么办?

DNS 超时

docker 无法连接轩辕镜像域名怎么办?

域名连通性排查

Docker 拉取出现 410 Gone 怎么办?

410 Gone 排查

出现 402 或「流量用尽」提示怎么办?

402 与流量用尽

Docker 拉取提示 UNAUTHORIZED(401)怎么办?

401 认证失败

遇到 429 Too Many Requests(请求太频繁)怎么办?

429 限流

docker login 提示 Cannot autolaunch D-Bus,还算登录成功吗?

D-Bus 凭证提示

为什么会出现「单层超过 20GB」或 413,无法加速拉取?

413 与超大单层

账号 / 计费 / 权限

轩辕镜像免费版和专业版有什么区别?

免费版与专业版区别

轩辕镜像支持哪些 Docker 镜像仓库?

支持的镜像仓库

镜像拉取失败还会不会扣流量?

失败是否计费

麒麟 V10 / 统信 UOS 提示 KYSEC 权限不够怎么办?

KYSEC 拦截脚本

如何在轩辕镜像申请开具发票?

申请开票

怎么修改轩辕镜像的网站登录和仓库登录密码?

修改登录密码

如何注销轩辕镜像账户?要注意什么?

注销账户

配置与原理类

写了 registry-mirrors,为什么还是走官方或仍然报错?

mirrors 不生效

怎么用 docker tag 去掉镜像名里的轩辕域名前缀?

去掉域名前缀

如何拉取指定 CPU 架构的镜像(如 ARM64、AMD64)?

指定架构拉取

用轩辕镜像拉镜像时快时慢,常见原因有哪些?

拉取速度原因

为什么拉取镜像的 :latest 标签,拿到的往往不是「最新」镜像?

latest 与「最新」

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
zeronorth/integration
博客Docker 镜像公告与技术博客
热门查看热门 Docker 镜像推荐
安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单。官方公众号:源码跳动。官方技术交流群:51517718。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单。官方公众号:源码跳动。官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.