exploiting-integer-overflow-vulnerabilities

exploiting-integer-overflow-vulnerabilities is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 69 tokens per session (2,441 once invoked), scanned A, original, Apache-2.0.

A security testing method for finding integer arithmetic bugs in native programs such as C, C++, Rust, or Go. These bugs occur when numbers wrap, become too small, or change meaning before they control memory sizes, copies, indexes, or offsets.

In plain words
What is it for?
Use it during authorized security assessments to investigate integer overflow, underflow, truncation, signedness confusion, allocation errors, bounds-check bypasses, and related buffer overflows.
Why use it?
It helps connect a numeric error to a real memory-safety problem instead of treating the arithmetic bug alone as the impact.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is grep -nE "malloc|calloc|memcpy|memmove|alloca|\\bread\\b" ./src/*.c.

Good fit Use it during authorized security assessments to investigate integer overflow, underflow, truncation, signedness confusion, allocation errors, bounds-check bypasses, and related buffer overflows.

Compare 6 skills from other repositories ↓
About the project

xalgorix/xalgorix is a self-hosted AI penetration-testing tool in which an LLM agent performs reconnaissance, looks for vulnerabilities, and coordinates exploitation, while a separate verifier re-tests findings before reporting them. It is for security teams, ethical hackers, and bug bounty work using a private, bring-your-own-LLM setup. The catalogue skills extend the agent's pentesting workflow.

xalgorix/xalgorix · 1,234 stars · on GitHub · xalgorix.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/xalgorix/xalgorix
agentmods
npx agentmods add skills/xalgorix/xalgorix/exploiting-integer-overflow-vulnerabilities

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for exploiting-integer-overflow-vulnerabilities

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/exploiting-integer-overflow-vulnerabilities/github.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/exploiting-integer-overflow-vulnerabilities)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/exploiting-integer-overflow-vulnerabilities"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/exploiting-integer-overflow-vulnerabilities/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for exploiting-integer-overflow-vulnerabilities

Your own site · 80×15
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/exploiting-integer-overflow-vulnerabilities"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/exploiting-integer-overflow-vulnerabilities.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,441 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 84
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.02441
Opus 5.5 $0.00028 $0.00976
Sonnet 5.5 $0.00014 $0.00488
Haiku 4.5 $0.00007 $0.00244

Measured 1mo ago against content hash 6daed78a792a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

exploiting-integer-overflow-vulnerabilities scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/tools/skills/data/binary-exploitation/exploiting-integer-overflow-vulnerabilities/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Exploiting Integer Overflow Vulnerabilities

When to Use

  • During authorized assessments of native code (C/C++/Rust/Go) where attacker-controlled integers feed size, length, count, index, or offset calculations.
  • When an allocation size is computed from arithmetic (count * elem_size, len - header, size + padding) that can wrap, producing an undersized buffer later written with the logical (un-wrapped) size — a classic integer-overflow-to-heap-overflow chain.
  • When a length/bounds check uses a narrow type (e.g. 1-byte size field) that can be overflowed to bypass validation while the real copy uses a larger value.
  • When signed/unsigned confusion causes a negative input to be treated as a huge positive size.

Critical: Concepts/Steps Most Often Missed

  • The overflow itself is rarely the impact — find the dangerous downstream use. An int wrap is only exploitable when the wrapped value sizes an allocation/copy/index. Always trace the tainted integer to a malloc, memcpy, read, loop bound, or array index.
  • Truncation across type widths. uint32_t product = (uint32_t)(count * elem_size) can wrap to a tiny value while a separate size_t to_copy = count * elem_size keeps the full value — allocation is small, copy is huge. Watch every cast to a narrower type.
  • Underflow on subtraction is just as dangerous. size_t payload = total_len - HEADER with total_len < HEADER underflows to a near-SIZE_MAX value, turning a "shrink" into an unbounded copy.
  • Signedness. A signed int read with scanf("%d") then cast to unsigned makes negatives become large positives, defeating if (x > LIMIT) checks.
  • Alignment/rounding re-introduces overflow after an initial guard. Custom allocators that pass an initial wrap check then do total += (8 - total) % total can wrap again for values near SIZE_MAX, yielding a tiny chunk (e.g. CVE-2025-54957).
  • Go/Rust wrap silently in release/normal builds. Go has no overflow panic by default; instrument with go-panikint; Rust wraps in release unless overflowing_*/checked arithmetic is used.

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 180 lines · 69 tokens per session scan A 6daed78a792a

Subscribe to this mod's changes

exploiting-integer-overflow-vulnerabilities is a skill published in the GitHub repository xalgorix/xalgorix (1,234 stars, last pushed today), licensed Apache-2.0. It adds 69 tokens to every session and 2,441 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

analyzing-slack-space-and-file-system-artifacts

Examine file system slack space, MFT entries, USN journal, and alternate data streams to recover hidden data and reconstruct file activity on NTFS volumes.

26zl/cybersec-toolkit · 44 tokens

deobfuscating-powershell-obfuscated-malware

Systematically deobfuscate multi-layer PowerShell malware using AST analysis, dynamic tracing, and tools like PSDecode and PowerDecode to reveal hidden payloads and C2 infrastructure.

26zl/cybersec-toolkit · 48 tokens

analyzing-supply-chain-malware-artifacts

Investigate supply chain attack artifacts including trojanized software updates, compromised build pipelines, and sideloaded dependencies to identify intrusion vectors and scope of compromise.

26zl/cybersec-toolkit · 42 tokens

ctf-rev

Use when solving a CTF reverse engineering challenge — stripped binaries, packed binaries, anti-debug, custom VMs, .NET/Java decomp, Android dex, obfuscated JS, ELF/PE/Mach-O analysis. Provides workflow and tool ordering from the reversing module. Triggers on "ctf rev", "reversing", "reverse engineer", "decompile"…

26zl/cybersec-toolkit · 86 tokens

ctf-pwn

Use when solving binary exploitation / pwn CTF challenges — buffer overflows, ROP, format strings, heap, kernel pwn. Provides a decision tree, exploit primitive catalog, and uses pwntools via the runscript(venv="pwntools") MCP path. Triggers on "ctf pwn", "binary exploit", "rop", "buffer overflow", "format string"…

26zl/cybersec-toolkit · 90 tokens

deobfuscating-javascript-malware

Deobfuscates malicious JavaScript code used in web-based attacks, phishing pages, and dropper scripts by reversing encoding layers, eval chains, string manipulation, and control flow obfuscation to reveal the original malicious logic. Activates for requests involving JavaScript malware analysis, script deobfuscation…

26zl/cybersec-toolkit · 82 tokens