TECHNICAL SHEET · Red Team
DOCUMENTATION ONLY
suBruteforce
Password testing against Unix su.
- Language
- Python
- Platform
- Linux / Unix
- Type
- Brute-force CLI
- Web demo
- No
Scope on pwn3d.es
This tool has no web interface: it ships as Brute-force CLI. This page documents its design, flow and usage; there is no runnable demo or hosted binary.
It produces failed attempts visible in logs and can lock accounts. For your own systems only; there is no web version and it is not distributed here.
What it is and what it is for
suBruteforce is a Python tool that tests the resilience of a local Unix user’s password through the su command. It is useful in an authorised audit to verify that a service or operator account does not use a trivial password.
Its defensive reading: repeated su attempts leave a trace on the system (PAM, journald), and the defence is the same as for any local credential: unguessable, manager-handled passwords, attempt lockout with pam_faillock and least privilege so you do not depend on su.
When to use it
Auditing local accounts
On your own machine, check that no service account falls to a basic list.
Teaching PAM detection
See how failed su attempts show up in the journal and how to alert on them.
Justifying pam_faillock
Demonstrate the value of failed-attempt lockout over su and sudo.
How it works
What it tests
It tries passwords against su <user> and tells a successful switch from a failure.
What trace it leaves
PAM “authentication failure” entries for su in the journal, in a burst.
How it is stopped
pam_faillock to lock after N failures, managed passwords and reducing who needs su.
What changes on pwn3d.es
- pwn3d.es documents the tool and its detection and mitigation; no attack runs from the site. Testing, on your own machine, is done with the repository CLI.
Installation and usage
Installation
git clone https://github.com/D1se0/suBruteforce.git
# comprueba que no se ejecuta como rootUsage
journalctl -g 'authentication failure' -t su --no-pager | tail# /etc/security/faillock.conf → deny y unlock_time
# habilita pam_faillock en /etc/pam.d/system-auth (preauth y authfail)Stack and dependencies
- Python 3
- CLI testing over su
- subprocess / pexpect
- Interaction with the su command
- threading
- Multi-threaded execution
git · repository code
Explore the repository
Related tools
Sheet built from the repository README and public code. Figures and commands are limited to what the project documents.