0. 준비
- docker(또는 Finch) 설치되어 있고 실행 중이어야 함
(ASH는 내부적으로 컨테이너를 띄워서 스캔함)
- 인터넷 가능한 환경에어야 함 (스캐너 이미지 받아오기 위함)
docker ps
brew install colima docker
colima start
1. 설치
- pipx 없으면 pip install --user pipx 먼저, 또는 그냥 pip install automated-security-helper
brew install python@3.12
# pipx install --python python3.12 "git+https://github.com/awslabs/automated-security-helper.git@v3.7.0"
pipx install --python /opt/homebrew/bin/python3.12 "git+https://github.com/awslabs/automated-security-helper.git@v3.7.0"
# 아래 명령은 AWS ASH 설치 도구가 아닌 것으로 확인됨
# pip3 install --user pipx
# pipx install automated-security-helper
installed package automated-security-helper 3.7.0, installed using Python 3.12.14
These apps are now globally available
- ash
- ashv3
- automated-security-helper
done! ✨ 🌟 ✨
설치되면 ash 명령어가 생김. 확인:
ash --version
awslabs/automated-security-helper v3.7.0
2. 스캔할 코드 폴더로 이동
cd ~/내프로젝트경로
3. 실행
ash --source-dir . --output-dir ./ash-output
# --source-dir . = 지금 폴더(현재 프로젝트) 스캔
# --output-dir ./ash-output = 결과 저장할 폴더
- 첫 실행은 스캐너 컨테이너 이미지를 받아오느라 몇 분 걸림. 이후엔 캐시돼서 빨라짐



checkov crash(ERROR)나는 경우, 병렬 처리를 끄고 스캔
CHECKOV_PARALLELIZATION_TYPE=none \
ash \
--mode local \
--output-dir ../ash-output/ash-output-cd
CHECKOV_PARALLELIZATION_TYPE=none \
ash \
--mode local \
--output-dir ../ash-output/ash-output-cd \
--config-overrides 'scanners.checkov.options.additional_formats=[]'
4. 결과 확인


./ash-output/ 폴더 내에:
- 종합 리포트(HTML/JSON) — 심각도별로 취약점 정리된 것
- 스캐너별 세부 결과(Bandit, Semgrep, Checkov 등 각각의 원본 결과)
HTML 리포트를 브라우저로 열어보는 게 제일 보기 편함
5. 대응
심각도(Critical/High부터) 순서로 하나씩 보면서, 실제 취약점인지 오탐인지 판단 → 실제면 코드 고치고, 오탐이면 무시 처리(suppress) 규칙 추가.
.ash.yaml
global_settings:
suppressions:
- rule_id: 'RULE-123'
path: 'src/example.py'
line_start: 10
line_end: 15
reason: 'False positive due to test mock'
expiration: '2025-12-31'
- rule_id: 'RULE-456'
path: 'src/*.js'
reason: 'Known issue, planned for fix in v2.0'
- 링크: Configuring Suppressions - https://github.com/awslabs/automated-security-helper/blob/main/docs/content/docs/suppressions.md#configuring-suppressions
* 참고
ash --help
- 실제 지원하는 옵션 확인
'Networking > AWS' 카테고리의 다른 글
| Claude Code + Amazon Bedrock 연동 가이드 (AWS SSO profile settings) (0) | 2026.07.13 |
|---|---|
| 백업 체계 (0) | 2026.05.12 |
| SSM 통신을 위한 VPC endpoint (0) | 2026.04.10 |
| Control Tower account (0) | 2026.04.07 |
| [Control Tower] sts:AssumeRoot (BreakGlassAssumeRoot) (0) | 2026.03.16 |




