# Source code scanning

> Source code scanning is an open-source agent skill for security. Runs security reviews of source code, dependencies, secrets and suspicious code. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/source-code-scanning
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** source-code-scanning
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through a security-focused review of a codebase or repository. It walks through identifying languages and package managers, running static analysis tools suited to each stack, checking dependency manifests and lockfiles for known CVEs, and scanning for hardcoded credentials. It also points the agent toward manual review of risky sinks such as exec, eval, query and deserialization calls, and checks for obfuscation, lifecycle script abuse and unexpected network calls.

The workflow is organized into phases with reference files that list commands per language and ecosystem, such as Semgrep, Bandit, gosec, Brakeman, npm audit, pip-audit, govulncheck, Trivy, TruffleHog and Gitleaks. Findings are rated against a CVSS-based severity table and are expected to carry CWE or CVE references, file and line locations, a proof of concept and remediation advice. Output is organized as one file per finding, raw tool output in an evidence folder and an executive summary.

The skill also includes a section for mobile app binaries (APK and IPA), covering extraction, framework detection for React Native, Flutter and Xamarin, and searching bundles and native libraries for secrets. It expects the agent to have shell access to run the referenced scanners, and it instructs the agent never to execute untrusted code during review.

## When your agent uses it

> Security-focused source code review and SAST. Scans for vulnerabilities (OWASP Top 10, CWE Top 25), CVEs in third-party dependencies/packages, hardcoded secrets, malicious code, and insecure patterns. Use when given source code, a repo path, or asked to "audit", "scan", "review" code security, or "check dependencies for CVEs".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/source-code-scanning)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/source-code-scanning)

## Features

- **Multi-language static analysis:** Runs SAST tools matched to the detected stack, including Semgrep, Bandit, gosec, Brakeman and CodeQL.
- **Dependency vulnerability scanning:** Checks npm, pip, Maven, Go, Ruby and generic manifests against known CVEs.
- **Hardcoded secrets detection:** Uses TruffleHog and Gitleaks to locate credentials and tokens in the file tree.
- **Manual sink tracing:** Guides review of injection, deserialization, crypto and auth weak points.
- **Malicious code checks:** Looks for obfuscated strings, lifecycle script abuse and suspicious network calls.
- **Structured security report:** Produces per-finding files with CWE or CVE IDs, severity, PoC and remediation.
- **Mobile binary analysis:** Covers APK and IPA extraction and secret hunting in React Native and native builds.

## Good for

- Audit this repository for security vulnerabilities before a release
- Check the project's dependencies for known CVEs
- Scan the codebase for hardcoded API keys and tokens
- Review a Python service for injection and deserialization risks
- Look through a npm package for obfuscated or suspicious code
- Search an extracted APK bundle for leaked secrets

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/source-code-scanning` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/source-code-scanning &&
cp -R "$tmp/skills/source-code-scanning" ~/.claude/skills/source-code-scanning &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/source-code-scanning` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/source-code-scanning` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/source-code-scanning &&
cp -R "$tmp/skills/source-code-scanning" ~/.agents/skills/source-code-scanning &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/source-code-scanning` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/source-code-scanning` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/source-code-scanning &&
cp -R "$tmp/skills/source-code-scanning" ~/.cursor/skills/source-code-scanning &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/source-code-scanning` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/source-code-scanning
```

Or copy the folder to `~/.gemini/skills/source-code-scanning` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/source-code-scanning`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/source-code-scanning &&
cp -R "$tmp/skills/source-code-scanning" ~/.copilot/skills/source-code-scanning &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/source-code-scanning` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/source-code-scanning` into your agent's skills folder as `source-code-scanning`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which tools does the skill rely on?

It references Semgrep, Bandit, ESLint security plugin, njsscan, SpotBugs with FindSecBugs, gosec, PHPCS Security Audit, Brakeman, CodeQL, npm audit, pip-audit, dependency-check, govulncheck, bundle audit, Trivy, Grype, TruffleHog and Gitleaks. You need to install whichever apply to your stack.

### Does Source code scanning modify the code it reviews?

The skill instructs the agent never to execute untrusted code during review and to treat findings as potential until verified. It describes producing report files rather than patching code.

### What output does Source code scanning produce?

It writes one markdown file per finding, raw tool output as JSON in an evidence folder, and a summary-report.md executive summary.

### Does Source code scanning cover mobile apps?

Yes, it includes a section for APK and IPA analysis covering extraction, framework identification and searching for secrets.

### How do I install Source code scanning in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/source-code-scanning to use it in all your projects, or to .claude/skills/source-code-scanning in one project.

### Does Source code scanning run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Source code scanning?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Source code scanning?

The closest alternatives to Source code scanning are Security review, Security review, Security review, Security review edho ferdian and Skill scanner.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-nabwinsaud): Security review is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Security review edho ferdian](https://ai-powered.com/skills/security-review-edho-ferdian): Security review edho ferdian is an open-source agent skill for security.
- [Skill scanner](https://ai-powered.com/skills/skill-scanner): Skill scanner is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-ramboz): Security review is an open-source agent skill for security.
- [Go security audit](https://ai-powered.com/skills/go-security-audit): Go security audit is an open-source agent skill for security.
- [Mobile security](https://ai-powered.com/skills/mobile-security): Mobile security is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/source-code-scanning
