Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
bitbucket-iac-scan — Scans Infrastructure as Code files for security misconfigurations and vulnerabilities using KICS, with Bitbucket Code Insights reporting. | Kitploit
도구/BitbucketBitbucket/atlassian/bitbucket-iac-scan
Cloud Infrastructure SecurityStatic AnalysisVulnerability ScannersContainer SecurityCode AnalysisConfiguration AuditingDevSecOpsMisconfiguration
Bitbucketatlassian/bitbucket-iac-scan

bitbucket-iac-scan

Scans Infrastructure as Code files for security misconfigurations and vulnerabilities using KICS, with Bitbucket Code Insights reporting.

저장소 보기
1년 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

Bitbucket Security: Infrastructure as Code Security Scanner

Scans your Infrastructure as Code configuration files to ensure good security practises. Creates a security Code Insights report if issue is found.

This Bitbucket Cloud supported Pipe leverages the industry leading KICS scanning tool to provide IaC Scanning capabilities to Bitbucket customers. See Details and Examples section for more information.

YAML Definition

Add the following snippet to the script section of your bitbucket-pipelines.yml file:

root@kitploit:~
- pipe: atlassian/bitbucket-iac-scan:0.5.2
  variables:
    FILES_TO_SCAN_PATH: '<string>'
    # SCAN_EXTRA_ARGS: '<array>' # Optional.
    # CONFIG_PATH: '<string>' # Optional.
    # CREATE_REPORT: "<boolean>" # Optional. Default: `true`
    # FAIL_ON: "<integer>" # Optional.
    # DEBUG: "<boolean>" # Optional. Default: `false`

Variables

(*) = required variable.

Additional options

If necessary, users can enhance their scans by incorporating options from the Scan command with the SCAN_EXTRA_ARGS variable.

Additionally, there's an option for users to create and provide a custom KICS configuration file, which is applied in the bitbucket-iac-scan pipe through the CONFIG_PATH variable. This configuration file serves as an alternative to using SCAN_EXTRA_ARGS. Upon creating a custom KICS config, it should be stored within the user's repository. This is where the pipeline with a bitbucket-iac-scan pipe will be triggered.

If both SCAN_EXTRA_ARGS and CONFIG_PATH variables are provided with duplicated arguments, then arguments from SCAN_EXTRA_ARGS variable will have a higher precedence.

Examples

Basic examples:

root@kitploit:~
script:
  - pipe: atlassian/bitbucket-iac-scan:0.5.2
    variables:
      FILES_TO_SCAN_PATH: ./my_files_to_scan_dir

Scan the sources and pipe should fail if the KICS scanner's [result status code][result status code] is more than or equal to provided threshold value.

root@kitploit:~
script:
  - pipe: atlassian/bitbucket-iac-scan:0.5.2
    variables:
      FILES_TO_SCAN_PATH: ./my_files_to_scan_dir
      FAIL_ON: 40

Advanced examples:

Example with kics config that can be used in the pipe:

kics-config.json. The path key will be ignored

root@kitploit:~
{
  "path": "assets/iac_samples",
  "verbose": true,
  "log-file": true,
  "type": "Dockerfile,Kubernetes",
  "queries-path": "assets/queries",
  "exclude-paths": [
     "foo/",
     "bar/"
  ],
  "output-path": "results"
}
root@kitploit:~
script:
  - pipe: atlassian/bitbucket-iac-scan:0.5.2
    variables:
      FILES_TO_SCAN_PATH: ./my_files_to_scan_dir
      CONFIG_PATH: kics-config.json

Example with scan options:

root@kitploit:~
script:
  - pipe: atlassian/bitbucket-iac-scan:0.5.2
    variables:
      FILES_TO_SCAN_PATH: ./my_files_to_scan_dir
      SCAN_EXTRA_ARGS:
        - "--disable-secrets"
        - "--type=Dockerfile"

Do not create a CodeInsights report:

root@kitploit:~
script:
  - pipe: atlassian/bitbucket-iac-scan:0.5.2
    variables:
      FILES_TO_SCAN_PATH: ./my_files_to_scan_dir
      CREATE_REPORT: 'false'

Support

If you’d like help with this pipe, or you have an issue or feature request, let us know on Community.

If you’re reporting an issue, please include:

  • the version of the pipe
  • relevant logs and error messages
  • steps to reproduce

License

Copyright (c) 2024 Atlassian and others. Apache 2.0 licensed, see LICENSE.txt file.

도구 다운로드
VariableUsage
FILES_TO_SCAN_PATH (*)Files or directories to scan , separated. Example: "./path_to_dir,path_to_file.txt".
SCAN_EXTRA_ARGSAdditional options to pass to the KICS scan commands. If -p argument is passed, it will extend the files or directories provided in FILES_TO_SCAN_PATH variable. If --config argument is passed, it will be ignored in favour of the CONFIG_PATH variable.
CONFIG_PATHPath to KICS configuration file. Alternative to SCAN_EXTRA_ARGS variable. If path keyword is provided inside config file, it will be ignored in favour of the FILES_TO_SCAN_PATH variable.
CREATE_REPORTControls whether the pipe will create Bitbucket CodeInsights reports using the results of the KICS execution. Default: true.
FAIL_ONThe threshold value of the KICS scanner's [result status code][result status code] at which the pipe should trigger a failure.
DEBUGTurn on extra debug information. Default: false.