Skill ghost-scan-code
scriptsMelakukan pemindaian kode SAST untuk mengidentifikasi kerentanan keamanan seperti SQL injection, XSS, dan BOLA pada aplikasi dan library.
- Bintang GitHub
- 441
- File
- 12
- Commit terakhir
- 28 Sep 2026
- Lisensi
- apache-2.0
- Tool yang diizinkan
- 6
Apa fungsi skill ghost-scan-code?
ghost-scan-code adalah agent skill. Melakukan pemindaian kode SAST untuk mengidentifikasi kerentanan keamanan seperti SQL injection, XSS, dan BOLA pada aplikasi dan library.
Ringkasan dibuat dari SKILL.md skill ini.
Tentang skill ghost-scan-code
Melakukan audit keamanan pada source code adalah fungsi utama dari ghost-scan-code bagi developer yang mengerjakan backend, frontend, aplikasi mobile, atau library. SKILL ini mengidentifikasi kerentanan seperti SQL injection, XSS, BOLA, BFLA, dan SSRF dengan merencanakan dan mengeksekusi pemindaian yang terarah. Tool ini dirancang untuk digunakan saat Anda memerlukan pemindaian SAST atau penilaian kerentanan pada sebuah codebase untuk menemukan celah keamanan.
Seorang agent akan memuat skill ini untuk menavigasi proses multi-step yang melibatkan perencanaan, penentuan file, dan analisis. Tool ini mengandalkan script internal seperti loop.sh dan criteria/index.yaml untuk memetakan tipe proyek ke vektor kerentanan tertentu. Proses ini menghasilkan temuan terorganisir yang disimpan dalam direktori khusus, dikategorikan berdasarkan isu yang terverifikasi atau ditolak. Anda dapat mengontrol intensitas pemindaian dengan menentukan kedalaman quick, balanced, atau full, meskipun full scan memerlukan konfirmasi eksplisit karena penggunaan token yang lebih tinggi.
Tool ini menggunakan kemampuan file system dan shell standar termasuk Read, Write, Edit, Glob, Grep, dan Bash untuk memeriksa repositori. Tool ini mengelola state-nya sendiri melalui sistem direktori terstruktur yang melacak rencana, nominasi, dan analisis.
Apa yang bisa dilakukan agent dengannya
- 1Melakukan audit keamanan menyeluruhLakukan pemindaian SAST komprehensif pada repositori untuk menemukan kerentanan OWASP.
- 2Memindai library untuk celah spesifikPeriksa library untuk masalah seperti prototype pollution, unsafe deserialization, atau ReDoS.
Ditulis dari SKILL.md milik skill tersebut. Setiap use case diverifikasi dengan kutipan darinya.
Cara install skill ghost-scan-code
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill ghost-scan-code di Plugin
/plugin marketplace add ghostsecurity/skills /plugin install ghost@ghost-security
Install skill ghost-scan-code di Claude Code
~/.claude/skills/ghost-scan-code/SKILL.md
$ npx degit ghostsecurity/skills/plugins/ghost/skills/scan-code ~/.claude/skills/ghost-scan-codeInstall skill ghost-scan-code di Claude Code (project)
.claude/skills/ghost-scan-code/SKILL.md
$ npx degit ghostsecurity/skills/plugins/ghost/skills/scan-code .claude/skills/ghost-scan-codeInstall skill ghost-scan-code di Codex
~/.agents/skills/ghost-scan-code/SKILL.md
$ npx degit ghostsecurity/skills/plugins/ghost/skills/scan-code ~/.agents/skills/ghost-scan-codeInstall skill ghost-scan-code di Gemini CLI
~/.gemini/skills/ghost-scan-code/SKILL.md
$ npx degit ghostsecurity/skills/plugins/ghost/skills/scan-code ~/.gemini/skills/ghost-scan-codeInstall skill ghost-scan-code di Claude.ai
npx degit ghostsecurity/skills/plugins/ghost/skills/scan-code ghost-scan-code && zip -r ghost-scan-code.zip ghost-scan-code # claude.ai → Customize → Skills → + → Create skill → Upload a skill → ghost-scan-code.zip
Pengecekan otomatis
Berjalan 15 Nov 2026Laporan lengkap →Belum terverifikasi. Skill perlu skor 80, tanpa temuan serius, dan data yang cukup untuk kami cek. Cara kerja checks · Yang perlu diperbaiki untuk menambah poin
- Source repository terhubung dan dapat dijangkaughostsecurity/skills/plugins/ghost/skills/scan-code is public and reachablegithub.com/ghostsecurity/skills/tree/HEAD/plugins/ghost/skil ↗Lolos
- Lisensi open source (OSI)apache-2.0spdx.org/licenses/apache-2.0.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit 2026-09-28github.com/ghostsecurity/skills/commits ↗Lolos
- Skrip tanpa unduh-lalu-jalankan atau pencurian kredensial1 script read; no download-and-run, remote eval, base64 execution or credential uploadLolos
- Tidak ada instruksi tersembunyi di SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/ghostsecurity/skills/blob/HEAD/plugins/ghost/skil ↗Lolos
- Tool yang diizinkan otomatis dibatasiBash lets the agent run any shell command without askinggithub.com/ghostsecurity/skills/blob/HEAD/plugins/ghost/skil ↗Temuan
- SKILL.md mengikuti format Agent Skillsname "ghost-scan-code" differs from the folder "scan-code"github.com/ghostsecurity/skills/blob/HEAD/plugins/ghost/skil ↗Temuan
SKILL.md
Lihat di GitHubFind Issues
You find security issues in a repository. This skill plans which vulnerability vectors to scan, then executes those scans against each project.
Inputs
- depth:
quick(default),balanced, orfull— override via$ARGUMENTS
$ARGUMENTS
Note: Arguments passed can be used to customize the scan workflow if provided. For example, if the user specifies a specific set of vectors, count of vectors, specific candidate files, areas to focus on, count of candidate files, etc., ensure the relevant details are passed to the relevant steps in the skill.
Supporting files
- Loop script: scripts/loop.sh
- Scan criteria: criteria/index.yaml
Step 1: Setup
Compute the repo-specific output directory:
repo_name=$(basename "$(pwd)") && remote_url=$(git remote get-url origin 2>/dev/null || pwd) && short_hash=$(printf '%s' "$remote_url" | git hash-object --stdin | cut -c1-8) && repo_id="${repo_name}-${short_hash}" && short_sha=$(git rev-parse --short HEAD 2>/dev/null || date +%Y%m%d) && ghost_repo_dir="$HOME/.ghost/repos/${repo_id}" && scan_dir="${ghost_repo_dir}/scans/${short_sha}/code" && cache_dir="${ghost_repo_dir}/cache" && mkdir -p "$scan_dir" && echo "scan_dir=$scan_dir cache_dir=$cache_dir"
- Read
$cache_dir/repo.md— if missing, run the repo-context skill first and then continue. - Read criteria/index.yaml to get the valid agent→vector mappings per project type
- Set
depthtoquickif not provided - If
depthisfull, warn the user that a full scan uses significantly more tokens and ask them to confirm before proceeding. If they decline, fall back tobalanced.
Step 2: Plan Scans
If $scan_dir/plan.md already exists, skip to the next step.
Otherwise, run the planner using scripts/loop.sh:
bash <path-to-loop.sh> $scan_dir planner.md "- depth: <depth>
- arguments: <relevant argument overrides if any, otherwise omit>" 1 $cache_dir
Use a 10-minute timeout. If the command times out, re-run it — the script resumes from where it left off. If it fails 3 times consecutively with the same error, stop and report the failure.
Verify: $scan_dir/plan.md exists and contains at least one ## Project: section before proceeding.
Step 3: Nominate Files
If $scan_dir/nominations.md does not exist, generate it by reading $scan_dir/plan.md and for each project section (## Project: <base_path> (<type>)), parse the Recommended Scans table. For each row, extract the Agent and Vector columns. Write $scan_dir/nominations.md - one line per (project, agent, vector) combination. Skip projects with empty scan tables.
# Nominations
- [ ] <base_path> (<type>) | <agent> | <vector>
- [ ] <base_path> (<type>) | <agent> | <vector>
...
If $scan_dir/nominations.md already exists, change every top level task - [x] to - [ ]. Keep all indented lines/subtasks beneath each item unchanged.
Run nomination script
Using scripts/loop.sh:
bash <path-to-loop.sh> $scan_dir nominator.md "- depth: <depth>
- arguments: <relevant argument overrides if any, otherwise omit>" 5 $cache_dir
Use a 10-minute timeout. If the command times out, re-run it — the script resumes from where it left off. If it fails 3 times consecutively with the same error, stop and report the failure.
Verify: $scan_dir/nominations.md contains at least one - [x] line before proceeding.
Step 4: Analyze Nominated Files
Read $scan_dir/nominations.md. For each candidate file under a checked - [x] line, append to $scan_dir/analyses.md (skip candidates already listed in analyses.md).
- [ ] <base_path> (<type>) | <agent> | <vector> | <candidate_file>
Create the findings directory:
mkdir -p $scan_dir/findings
Run analysis script
Using scripts/loop.sh:
bash <path-to-loop.sh> $scan_dir analyzer.md "" 5 $cache_dir
Use a 10-minute timeout. If the command times out, re-run it — the script resumes from where it left off. If it fails 3 times consecutively with the same error, stop and report the failure.
Verify: $scan_dir/analyses.md contains at least one - [x] line before proceeding.
Step 5: Verify Findings
List all .md files in $scan_dir/findings/. If none exist, write a no-findings.md summary and stop.
Using scripts/loop.sh:
bash <path-to-loop.sh> $scan_dir verifier.md "" 5 $cache_dir
Use a 10-minute timeout. If the command times out, re-run it — the script resumes from where it left off. If it fails 3 times consecutively with the same error, stop and report the failure.
Completion
After all steps complete, report the scan results:
- List all finding files in
$scan_dir/findings/ - Count verified vs rejected findings
- Present a summary to the user
Berkas dalam skill ini
12Pertanyaan seputar skill ghost-scan-code
Bagaimana cara install skill ghost-scan-code di Claude Code?
Jalankan npx degit ghostsecurity/skills/plugins/ghost/skills/scan-code ~/.claude/skills/ghost-scan-code. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill ghost-scan-code?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.
Jenis kerentanan keamanan apa yang bisa ditemukan oleh tool ini?
Tool ini memindai masalah termasuk SQL injection, XSS, BOLA, BFLA, SSRF, prototype pollution, unsafe deserialization, ReDoS, path traversal, dan zip slip.
Apa yang terjadi jika saya memilih full scan?
Full scan menggunakan token yang jauh lebih banyak, sehingga agent akan memberi peringatan dan meminta konfirmasi Anda sebelum melanjutkan.