National Cyber Warfare Foundation (NCWF)login

SUID3NUM for fast SUID binary enumeration and privilege escalation triage


0 user ratings
2026-11-03 07:33:04
milo
Red Team (CNA)
"SUID3NUM

SUID3NUM is a standalone Python script that enumerates SUID binaries, separates stock from custom ones, and cross-matches them against GTFOBins for authorized pentest and CTF workflows.








ToolAnon-Exploiter/SUID3NUM — standalone Python 2/3 script for SUID binary enumeration and triage against GTFOBins
CategoryLinux local privilege escalation enumeration
Primary UseRapidly separating exploitable custom SUID binaries from default ones during authorized engagements, CTF boxes, HackTheBox, and OSCP-style labs
Safe UseUse exclusively on systems you own or are explicitly authorized to assess — lab machines, boot2root challenges, VulnHub, HTB, and client environments under signed engagement rules
Telemetry NoteThe script enumerates filesystem permission bits and executes documented GTFOBins techniques; defenders can spot its activity through filesystem scans, sudo/shell audit logs, and unusual interactive shell spawns by SUID binaries

SUID3NUM addresses one of the most tedious steps of post-exploitation triage on Linux: figuring out which SUID binaries on a box actually matter. Any seasoned operator who has run a general-purpose enumeration script knows the pain of staring at a wall of SUID paths, most of which ship with the distribution and are perfectly benign. The author states this motivation directly — general enumeration tools like LinEnum print SUID binaries and GTFO references without separating defaults from customs, which the README colorfully describes as leading to hours of head-banging when you cannot escalate privileges. SUID3NUM exists to collapse that triage loop into seconds.


The tool is a standalone suid3num.py script that deliberately relies only on Python's built-in modules, which means zero dependency installation on a target box — a meaningful design decision when you are working on a minimal lab VM or a stripped-down client host with no package manager access. Compatibility is broad: the README claims support for Python 2.5 through 2.7 and 3.5 through the 3.7 line, and testing covered Pop! OS 18.04, Ubuntu 18.04 LTS, the Nebula exercise VM, and Kali Linux on the PWK VM. That testing matrix alone tells you the intended audience: OSCP candidates and boot2root practitioners.


Internally, the workflow splits the discovered SUID set into three logical buckets. First, it lists all default SUID binaries — the ones that ship with a vanilla Linux installation and are generally not exploitable. Second, it isolates custom binaries, meaning anything that does not come from a stock package installation; these are the artifacts an administrator or challenge author deliberately placed on the box. Third, it cross-matches the custom set against the GTFOBins repository, surfacing any binary with a documented privilege escalation technique. The README credits Cyrus and the GTFOBins project directly, which is the correct attribution for where the exploitation knowledge actually lives.


What elevates SUID3NUM above a simple find-based one-liner is its conservative approach to automation. The -e flag attempts auto-exploitation of found custom SUID binaries, but only for those techniques that will not impact the machine's files — the changelog explicitly notes that binaries whose exploitation would create files or directories, or modify existing files, are separated into their own section. For that risky category, the tool prints the binary and its exploitation path but requires the operator to execute manually, with the README insisting the user should understand those commands before running them. This is a sensible safety boundary that keeps destructive actions under human control.


The author is candid about the limits of automation in real exam conditions. In the OSCP section, they note that the easy, auto-exploitable binaries you find in casual CTFs simply do not appear in the exam — you will still have to research — but SUID3NUM does half the work for you. They also flag that some people advise against using -e during the exam itself, while confirming the script itself was used and linked in their own exam report without issue. That kind of practical, first-hand guidance is rare in tool READMEs and tells you the author actually ran this under the exact pressure conditions the audience cares about.


Deployment is deliberately minimal, and the README offers the two standard fetch patterns: pulling suid3num.py directly from the repository with wget or curl. Once on the box, invocation is just python suid3num.py for enumeration and python suid3num.py -e if you opt into the auto-exploitation pass. Because it is a single file with no pip requirements, cleanup after an authorized assessment is trivial — delete the script — though exam candidates should remember that any post-exploitation tooling run during a proctored exam needs to be disclosed per the exam policy.


From a repository-metadata perspective, SUID3NUM sits at 683 stars with an MIT license, written entirely in Python, and its topic list reads like a map of its ecosystem: oscp-tools, pentest-tools, privilege-escalation, gtfobins, htb, vulnhub, boot2root, and suid. The maintenance badge claims active upkeep, and the README includes contributor, issue, and pull-request shields along with a star-history chart, all signs of a tool that has sustained community attention rather than a weekend one-off. The asciinema demos linked in the README let you preview both the enumeration and exploitation output before ever touching a target.


The value proposition really crystallizes when you compare it against running find / -perm -4000 and then manually pasting results into GTFOBins. That manual loop costs minutes per binary and, more importantly, wastes cognitive energy on binaries like passwd, sudo, or mount that appear on virtually every Linux system. By filtering defaults automatically, SUID3NUM lets the operator focus exclusively on the delta — the custom artifacts — which in a well-designed lab box is almost always where the intended path lives. In a real client engagement, that same delta is where misconfigured third-party software and legacy admin helpers surface.


For defensive professionals, this tool is equally instructive to understand from the outside. If SUID3NUM output on your infrastructure would highlight custom SUID binaries matching GTFOBins, that is exactly the hygiene gap to close proactively: audit for unnecessary setuid bits, remove them from third-party packages, and monitor for interactive shells spawned by unusual binaries. Knowing which of your binaries appear in GTFOBins before an attacker enumerates them is a cheap, high-signal hardening exercise, and SUID3NUM doubles as an internal audit script for exactly that inventory.


The author's closing note deserves emphasis for anyone considering the tool: run it only with prior knowledge of SUID binaries and an understanding of what the script does, and do not use the -e parameter if you do not know what you are doing. That framing, combined with the refusal to auto-execute file-impacting techniques, positions SUID3NUM as a triage accelerator rather than a fire-and-forget exploit kit. For authorized pentesters, HTB and VulnHub practitioners, and OSCP candidates working through privilege escalation on lab machines, it is a compact, well-scoped addition to the post-exploitation toolkit — and its single-file, dependency-free design means it will keep working on old boxes where heavier frameworks choke.



Official project repository for Anon-Exploiter/SUID3NUM.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/11/suid3num-for-fast-suid-binary.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.