# Adversarial code review pass security

> Adversarial code review pass security is an open-source agent skill for security. Reviews code diffs for security issues like data leaks, auth gaps and injection. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/aws-solutions/konductor/tree/main/skills/adversarial-code-review-pass-security
- **Repository:** https://github.com/aws-solutions/konductor
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** adversarial-code-review-pass-security
- **Collection:** https://github.com/aws-solutions/konductor
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill gives the agent a security-focused lens for reviewing a code diff. It asks the agent to look for information disclosure such as stack traces or raw exception messages reaching callers, sensitive data written to logs, unvalidated input used in queries or commands, new authorization paths that skip existing middleware, hardcoded secrets, and widened IAM policies or trust relationships.

Each finding is expected to name the file and line, describe a concrete failure scenario, and propose a specific fix. Findings are graded as CRITICAL, IMPORTANT or SUGGESTION. The skill also tells the agent to check the codebase for existing error-mapping layers, pagination token utilities, auth middleware and secrets managers before flagging something as missing, and to skip synthetic values in test fixtures.

The skill is one of several parallel passes in the adversarial code review workflow of the Konductor project. It is meant to run in a session spawned by a coordinator skill, and its output is treated as candidate findings that a separate checker filters before anything is posted.

## When your agent uses it

> Reviews a diff through the lens of security concerns: information disclosure, authorization, injection, secrets. Use only when the adversarial-code-review coordinator spawns a session naming it, alongside the integrity and schema passes.

## What it can access

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

- [Instructions only, no scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/adversarial-code-review-pass-security)
- [License: Apache-2.0](https://github.com/aws-solutions/konductor/tree/HEAD/skills/adversarial-code-review-pass-security)

## Features

- **Information disclosure checks:** Flags stack traces, internal IDs, table names and raw exception messages that could reach callers.
- **Authorization path review:** Checks that new routes and access paths are wired into existing middleware or authorizers.
- **Input validation review:** Looks for unvalidated input, cursors or IDs used in queries, paths or commands.
- **Secrets and credential scan:** Identifies hardcoded keys, credentials and tokens while ignoring synthetic test fixture values.
- **IAM policy widening detection:** Flags changes that broaden IAM policies, grants or trust relationships.
- **Structured severity reporting:** Outputs each finding with severity, file and line, problem, and suggested fix.

## Good for

- Review a pull request diff for security problems before merging
- Check new API endpoints for missing authorization middleware
- Look for accidentally committed credentials or API keys in a change
- Audit log statements for sensitive request or response data
- Verify that error handling does not leak internal details to users

## Install

### Claude Code

This skill ships in the `konductor` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductor
```

Or copy only this skill to `~/.claude/skills/adversarial-code-review-pass-security`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/adversarial-code-review-pass-security &&
cp -R "$tmp/skills/adversarial-code-review-pass-security" ~/.claude/skills/adversarial-code-review-pass-security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/adversarial-code-review-pass-security` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/adversarial-code-review-pass-security` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/adversarial-code-review-pass-security &&
cp -R "$tmp/skills/adversarial-code-review-pass-security" ~/.agents/skills/adversarial-code-review-pass-security &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/adversarial-code-review-pass-security` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/adversarial-code-review-pass-security` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/adversarial-code-review-pass-security &&
cp -R "$tmp/skills/adversarial-code-review-pass-security" ~/.cursor/skills/adversarial-code-review-pass-security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/adversarial-code-review-pass-security` 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/aws-solutions/konductor.git --path skills/adversarial-code-review-pass-security
```

Or copy the folder to `~/.gemini/skills/adversarial-code-review-pass-security` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/adversarial-code-review-pass-security`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/adversarial-code-review-pass-security &&
cp -R "$tmp/skills/adversarial-code-review-pass-security" ~/.copilot/skills/adversarial-code-review-pass-security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/adversarial-code-review-pass-security` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-solutions/konductor.git
```

Then copy `konductor/skills/adversarial-code-review-pass-security` into your agent's skills folder as `adversarial-code-review-pass-security`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Adversarial code review pass security trigger?

It is meant to be used only when the adversarial-code-review coordinator spawns a session that names it, alongside the integrity and schema passes.

### Does Adversarial code review pass security change code or post comments itself?

No. It returns a list of findings. The coordinator forwards them to a separate checker that applies the adversarial-code-review skill in validator mode before anything is posted to the pull request.

### What does Adversarial code review pass security need to run?

It runs inside a k-developer session spawned by an adversarial-review coordinator SOP, such as k-adversarial-pull-request-review. The skill folder contains only the SKILL.md file and no scripts.

### Does Adversarial code review pass security flag test data?

Synthetic account IDs, credentials and internal IDs in test fixtures are exempt, but genuine injection patterns or unsafe code in test files are still flagged.

### How do I install Adversarial code review pass security in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/adversarial-code-review-pass-security to use it in all your projects, or to .claude/skills/adversarial-code-review-pass-security in one project. Or install the konductor plugin, which includes it: /plugin marketplace add aws-solutions/konductor, then /plugin install konductor@konductor.

### Does Adversarial code review pass security 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 Adversarial code review pass security?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Adversarial code review pass security?

The closest alternatives to Adversarial code review pass security are Adversarial code review, Adversarial code review pass integrity, Security review, Adversarial code review pass schema and Security review edho ferdian.

## Where this comes from

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

## Alternatives

- [Adversarial code review](https://ai-powered.com/skills/adversarial-code-review): Adversarial code review is an open-source agent skill for security.
- [Adversarial code review pass integrity](https://ai-powered.com/skills/adversarial-code-review-pass-integrity): Adversarial code review pass integrity is an open-source agent skill for developer tools.
- [Security review](https://ai-powered.com/skills/security-review-nabwinsaud): Security review is an open-source agent skill for security.
- [Adversarial code review pass schema](https://ai-powered.com/skills/adversarial-code-review-pass-schema): Adversarial code review pass schema is an open-source agent skill for developer tools.
- [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.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review 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.
- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/adversarial-code-review-pass-security
