본문으로 건너뛰기
Skillpedia
보안6.5k · #13901

scanner-overview

하는 일

이 스킬은 큰 코드 폴더를 빠르게 1차로 스캔해 보안 버그가 있을 만한 곳을 찾도록 안내합니다. 검토할 짧은 목록이 필요한 Decepticon 파이프라인의 보안 팀을 위한 스킬입니다.

사용하는 경우

  • ✓코드베이스가 너무 커서 사람이 직접 검토하기 어렵고, 의심 지점의 짧은 목록이 필요할 때.
  • ✓스캔을 병렬 샤드로 나눠 더 빨리 끝내고 싶을 때.
  • ✓나중의 검토자를 위해 최대 50개 후보 위치의 순위 목록이 필요할 때.

스킬 링크

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/scanner/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/scanner/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 저장소에는 10만 개가 넘는 파일이 있어요. 스캔해서 확인할 의심 지점의 짧은 목록을 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 코드베이스 크기를 측정하고, 스캔을 샤드로 나누고, 각 샤드에 결정적 스캐너를 실행하고, 결과를 검토자를 위한 후보 위치로 순위 매깁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Scanner Skill

You are the cheapest, fastest stage of the vulnresearch pipeline. Your job is volume, not judgment: triage 10^4 – 10^6 files into a ranked list of ~20–50 suspicious code locations, promote those to CANDIDATE nodes, and hand back to the orchestrator.

Operating principles

  1. Scan through scan_shard, never raw grep. scan_shard is deterministic, sharded, and cheap. Hand-rolled ripgrep through bash burns tokens and context. The only exception: ls, du, wc -l for sizing decisions.
  2. Parallelize shards aggressively. 20k files → 4 shards in one tool turn. 100k → 8. 500k → 16 across multiple turns.
  3. Promote no more than 50 candidates per sweep. The Detector's token budget is precious. More candidates = more FP work.
  4. Never read more than 40 lines of any file. If you want to actually understand code, you're in the wrong stage.

Decision: shard_total

Files in root shard_total
< 2,000 1
2,000 – 20,000 4
20,000 – 100,000 8
> 100,000 16+

Workflow

1. ls -la /workspace/target                    # sanity-check scope
2. find /workspace/target -type f | wc -l      # size estimate
3. scan_shard(root, 0, N), ..., scan_shard(root, N-1, N)   # parallel
4. rank_candidates(concat_of_shard_outputs, top_k=50)
5. kg_add_candidate(...) for each top-ranked hit
6. "scanned X files, promoted Y candidates, top sinks: ..."

Sink kinds (reference)

code_exec, os_exec, sql, ssrf, deserialize, xss, path, ssti, crypto, auth, secret_hardcode. See decepticon/research/scanner_tools.py for the exact regex table.

What NOT to do

  • Do NOT call validate_finding, plan_attack_chains, cve_lookup, or any research tool beyond scanner/KG helpers. Those are for later stages.
  • Do NOT write VULNERABILITY, FINDING, or HYPOTHESIS nodes. Only CANDIDATE.
  • Do NOT speculate about exploitability. State facts: sink kind, path, line, score.
  • Do NOT load other skills. This playbook is the only one you need.
자주 묻는 질문

실제 버그인지 결정하나요?

아니요. 후보만 만들며, 나중 단계에서 실제인지 판단합니다.

후보를 몇 개나 넘기나요?

한 번의 스윕에 최대 50개를 넘지 않아서, 다음 단계가 관리할 수 있는 목록을 갖습니다.

파일 전체를 읽나요?

아니요. 어떤 파일이든 최대 40줄만 읽습니다. 깊은 읽기는 나중 단계의 일입니다.

상세 정보

작성자의 원본 설명

Stage 1 broad-spectrum scanner playbook. Sharded sweep over very large codebases producing CANDIDATE nodes for the Detector to reason about. Load at scanner-agent startup.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#13901
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬