프로젝트
GitHub에서 보기
Add false positives to
techjacker/repo-security-scanner
소개
비밀번호와 개인 키 등 git 저장소에 실수로 커밋된 시크릿을 찾는 CLI 도구입니다.
보안 및 개인정보 보호측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- -3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalrepo-security-scanner
- CLI tool that finds secrets accidentally committed to a git repo, eg passwords, private keys
- Run it against your entire repo's history by piping the output from
git log -p
Installation
- Download the latest stable release of the CLI tool for your architecture
- Extract the tar and move the
scanrepobinary to somewhere in your$PATH, eg/usr/bin
Usage
Check the entire history of the current branch for secrets.
$ git log -p | scanrepo
------------------
Violation 1
Commit: 4cc087a1b4731d1017844cc86323df43068b0409
File: web/src/db/seed.sql
Reason: "SQL dump file"
------------------
Violation 2
Commit: 142e6019248c0d53a5240242ed1a75c0cc110a0b
File: config/passwords.ini
Reason: "Contains word: password"
...
Add false positives to .secignore
$ cat .secignore
file/that/is/not/really/a/secret/but/looks/like/one/to/diffence
these/pems/are/ok/*.pem
Notifications
Work in progress.
Local Testing
Set environment variables needed
Create env file and update environment variables.
$ cp .env{.example,}
# update .env values
$ vi .env
$ source .env
Launch containers
$ docker-compose up -d
Run test offenses
$ make test-run-offenses
Debugging Elastalert
$ docker exec -it <elastalert_container_hash> sh
# run elastalert test rule utility within elastalert container
$ elastalert-test-rule --config $ELASTALERT_CONFIG --count-only "$RULES_DIRECTORY/new_violation.yaml"
$ elastalert-test-rule --alert --config $ELASTALERT_CONFIG "$RULES_DIRECTORY/new_violation.yaml"
# run elastalert in debug mode
$ elastalert --config "$ELASTALERT_CONFIG" --rule "$RULES_DIRECTORY/new_violation.yaml" --debug
Logs
$ tail -f /log/elastalert_new_violation_rule.log
관련 프로젝트 살펴보기
불러오는 중…