Skip to content
Back to skills

Aibugs

ASecurity

Find bugs and vulnerabilities in C code for radare2

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
toolsshellapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add NetVar1337/agent-skill-canon --skill aibugs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aibugs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Aibugs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/netvar1337-aibugs/badge)](https://www.skillsdirectory.com/skills/netvar1337-aibugs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aibugs
description: Find bugs and vulnerabilities in C code for radare2
---

## Introduction

There are several classic vulnerabilities misusing libc apis or just plain C. But you are an expert in radare2, so you must focus on understanding missuses of the libr apis and scripts instead.

## Steps

1. Read AGENTS.md, follow the rules
  - Patches must be surgical, small, refactor to avoid duplicating code, keep logic simple.
2. Find command injection vulnerabilities
  - The `r_core_cmd` apis parse special characters, which if the user or the binary loaded have control
  - Better use `r_core_call` functions
  - Prefer the use of `call_at` if a temporal seek is needed
3. Autogenerated scripts
   - The `*` command suffix, will force the output to contain a script for radare2.
   - Read the `r_cons_printf` calls used in those subcommands to find out any

It's recommended, to run r2 oneliners to confirm the vulnerabilities are real before fixing them.

The single quote commands syntax permits temporal seeks too, for example this command is the safe equivocalent of `x@0x123`. Also, an important hint for single quote commands

```radare2
'@0x123'x
```

The double quote commands are also vulnerable to command injection if data is not filtered properly for example:

```radare2
"echo hello";"echo "world"
```

In the code above, if `hello` was controlled by the user they can include a quote to close the command and inject a semicolon to run a separate command.

## Command syntax:

When running a command that starts with "'", the command parser will ignore all the special characters and just run the command with given arguments.
- if the command is a system shell escape `!` there can be still code injection bugs, see the sanitize for `sh` in this case

## Shell injection bugs

* See `r_str_sanitize_sh` and the `r_sys_cmd` apis
* Ensure all this follows the right strict rules from the `r_sandbox` settings

## Sanitization APIs:

See `r_name_filter`, and all the `r_str_sanitize` apis to understand their purpose and use them wisely, do not reduce the.

Some commands accept `base64:` arguments. Use them if we really need raw data accepting any characters.

Files in this skill

  • SKILL.md2.1 KB
  • questions.txt4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.