Loading...
Loading...
Ghost Security - SAST code scanner. Finds security vulnerabilities in source code by planning and executing targeted scans for issues like SQL injection, XSS, BOLA, BFLA, SSRF, and other OWASP categories. Use when the user asks for a code security audit, SAST scan, vulnerability scan of source code, or wants to find security flaws in a codebase.
npx skill4agent add ghostsecurity/skills ghost-scan-codequickbalancedfull$ARGUMENTSNote: 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.
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"$cache_dir/repo.mddepthquickdepthfullbalanced$scan_dir/plan.mdbash <path-to-loop.sh> $scan_dir planner.md "- depth: <depth>
- arguments: <relevant argument overrides if any, otherwise omit>" 1 $cache_dir$scan_dir/plan.md## Project:$scan_dir/nominations.md$scan_dir/plan.md## Project: <base_path> (<type>)$scan_dir/nominations.md# Nominations
- [ ] <base_path> (<type>) | <agent> | <vector>
- [ ] <base_path> (<type>) | <agent> | <vector>
...$scan_dir/nominations.md- [x]- [ ]bash <path-to-loop.sh> $scan_dir nominator.md "- depth: <depth>
- arguments: <relevant argument overrides if any, otherwise omit>" 5 $cache_dir$scan_dir/nominations.md- [x]$scan_dir/nominations.md- [x]$scan_dir/analyses.mdanalyses.md- [ ] <base_path> (<type>) | <agent> | <vector> | <candidate_file>mkdir -p $scan_dir/findingsbash <path-to-loop.sh> $scan_dir analyzer.md "" 5 $cache_dir$scan_dir/analyses.md- [x].md$scan_dir/findings/no-findings.mdbash <path-to-loop.sh> $scan_dir verifier.md "" 5 $cache_dir$scan_dir/findings/