Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/radareorg/radare2-skills --skill aibugs명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Create a commit message to use for the currently unstaged changes
Clean and refactor code with a focus on unnecessary complexity, reducing lines of code, improving readability, and preferring radare2-native portable APIs.
Triage and audit radare2 binaries via r2xsql — find suspicious behavior, surface crypto/network/persistence APIs, hunt high-complexity functions, and run multi-table queries that combine code, data, and xrefs.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | aibugs |
| description | Find bugs and vulnerabilities in C code for radare2 |
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.
r_core_cmd apis parse special characters, which if the user or the binary loaded have controlr_core_call functionscall_at if a temporal seek is needed* command suffix, will force the output to contain a script for radare2.r_cons_printf calls used in those subcommands to find out anyIt'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.
When running a command that starts with "'", the command parser will ignore all the special characters and just run the command with given arguments.
! there can be still code injection bugs, see the sanitize for sh in this caser_str_sanitize_sh and the r_sys_cmd apisr_sandbox settingsSee 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.