aibugs
Find bugs and vulnerabilities in C code for radare2
от radareorg★ 23 звезды на GitHub
Установить aibugs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
- Read AGENTS.md, follow the rules
- Patches must be surgical, small, refactor to avoid duplicating code, keep logic simple.
- Find command injection vulnerabilities
- The
r_core_cmdapis parse special characters, which if the user or the binary loaded have control - Better use
r_core_callfunctions - Prefer the use of
call_atif a temporal seek is needed
- Autogenerated scripts
- The
*command suffix, will force the output to contain a script for radare2. - Read the
r_cons_printfcalls used in those subcommands to find out any
- The
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
'@0x123'x
The double quote commands are also vulnerable to command injection if data is not filtered properly for example:
"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 forshin this case
Shell injection bugs
- See
r_str_sanitize_shand ther_sys_cmdapis - Ensure all this follows the right strict rules from the
r_sandboxsettings
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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- questions.txt
FAQ
Что делает скилл aibugs?
Find bugs and vulnerabilities in C code for radare2
Как установить скилл aibugs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aibugs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…