Ir al contenido

Offensive Tools Arsenal (Red Team)

Reference encyclopedia and tactical manual of the adversary simulation tools arsenal, organized by operational phases and Purple Team detection signatures.

Technical difficulty:
0views

Welcome to the master compendium of the Portelcore Offensive Arsenal. This space collects, classifies, and illustrates the tactical use of the most industrially relevant perimeter auditing and internal intrusion tools. Furthermore, aligned with the Purple Team philosophy, each tool includes its respective detection directive and audit logs to ensure that our SOC analysts know how to track and contain its activity.


The offensive arsenal is structured into five operational categories that represent the technical progression of a complete adversary simulation:

[🔍 Fase 1: Reconocimiento] ──► [🔑 Fase 2: Credenciales] ──► [🚀 Fase 3: Post-Explotación] ──► [⚙️ Fase 4: Binex]
(Nmap, RustScan, Web) (Hydra, Hashcat) (Mimikatz, BloodHound) (GDB, Ghidra)

🔍 Phase 1: Web Reconnaissance and Discovery (TA0007 - Discovery)

Sección titulada «🔍 Fase 1: Reconocimiento y Descubrimiento Web (TA0007 - Discovery)»

The first phase aims to map the exposed attack surface and identify potential entry vectors.

  • Official Sources:
  • Architecture and Purpose: Nmap is the leading tool for network discovery and security auditing. It operates through direct injection and manipulation of raw network packets at the transport layer (TCP/UDP), analyzing responses in detail (such as TCP header flags) to determine port status (open, closed, filtered), the remote host's operating system, and the versions of exposed services.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Escaneo Sigiloso SYN (Half-Open), evadiendo DNS, fragmentando paquetes y utilizando Decoys
    nmap -sS -Pn -f -D 10.10.50.25,10.10.50.32,ME -T2 10.10.99.100
    # 2. Descubrimiento completo de servicios, versiones y scripts básicos de vulnerabilidades
    nmap -sC -sV -p- -oN escaneo_completo.nmap 10.10.99.100
    # 3. Escaneo ofensivo agresivo buscando vulnerabilidades específicas de IIS y SMB mediante scripts NSE
    nmap -p 80,443,445 --script vuln,exploit -Pn 10.10.99.100
  • Critical Flags and Parameters:
    • -sS: Performs a TCP SYN scan (does not complete the TCP three-way handshake, reducing logging in traditional logs).
    • -Pn: Disables the prior host alive ping. Assumes all hosts are active, essential for evading firewalls that block ICMP.
    • -f: Fragments IP packet headers into small portions to confuse or overflow old IDS/IPS detection signatures.
    • -D: Inserts fake IPs (Decoys) mixed with your real one (ME) to obfuscate the victim's firewall logs.
    • -T[0-5]: Sets the timing template (from 0 for stealthy/slow to 5 for aggressive parallel scans).
  • ** Purple Team Approach and Detection Signatures:**
    • Firewall Logs: SIEM correlation of multiple TCP connections to incremental ports within brief seconds from a single IP.
    • IDS/IPS Alerts (Snort/Suricata): Detection signatures such as TCP Portscan or atomic detections of non-standard IP fragmentation.
    • Defensive Mitigation: Enable temporary automatic blocking of IPs showing a persistent scanning pattern via load balancers or local firewalls.

  • Official Sources:
  • Architecture and Purpose: RustScan is programmed in Rust to maximize parallelism at the execution thread level. It uses the native asynchrony paradigm to scan a host's 65,535 ports in seconds. Its purpose is to act as an "ultrafast front-end" that discovers open ports and automatically injects them into Nmap for detailed service scanning, drastically reducing pentesting operational time.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Escaneo de alta velocidad con un límite de sockets concurrentes alto, delegando los puertos abiertos a Nmap
    rustscan -a 10.10.99.100 --ulimit 5000 -- -A -sV -Pn
    # 2. Escaneo silencioso reduciendo la velocidad a rangos específicos de puertos
    rustscan -a 10.10.99.100 -p 22,80,443,445,8080 -- -sC
  • Critical Flags and Parameters:
    • -a: Specifies the host or IP range to scan in CIDR format.
    • --ulimit: Sets the maximum number of logical file descriptors (web sockets) allowed in parallel in the operating system.
    • --: Any flag placed after this double dash will be sent in its entirety to the local Nmap instance.
  • ** Purple Team Approach and Detection Signatures:**
    • Extreme Visibility: Its high speed makes it a highly noisy attack. It generates an unmistakable pattern of anomalous traffic spikes in the SIEM.
    • Sigma Rule / IDS: Immediate detections based on sudden spikes in connection denials per second (Firewall Event ID or local TCP RST logs).

  • Official Sources:
  • Architecture and Purpose: Web application fuzzing tools using brute-force attacks based on wordlists (wordlists). Gobuster is written in Go and leverages goroutines to send hundreds of concurrent HTTP requests searching for directories, subdomains, or virtual hosts. Dirb, on the other hand, performs recursive web directory analysis by detecting links.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Fuerza bruta sobre subdirectorios web buscando extensiones específicas y con 50 hilos paralelos
    gobuster dir -u http://10.10.99.100 -w /usr/share/wordlists/dirb/common.txt -t 50 -x php,txt,html,json,bak
    # 2. Descubrimiento silencioso de subdominios utilizando DNS de Cloudflare y deshabilitando warnings
    gobuster dns -d portelcore.com -w /usr/share/wordlists/amass/subdomains-top1mil-5000.txt -r 1.1.1.1 --quiet
  • Critical Flags and Parameters:
    • dir: Web scanning mode for directories and files.
    • -u: Target URL of the web server.
    • -w: Absolute path to the wordlist to be tested.
    • -x: Comma-separated list of file extensions to append to each word.
    • -t: Number of simultaneous concurrent requests.
  • ** Purple Team Approach and Detection Signatures:**
    • Web Logs (Nginx/Apache/IIS): Massive ingestion of HTTP status codes 404 Not Found correlated to the same source IP within microseconds.
    • User-Agent Filters: Perimeter blocking and alert generation if the WAF intercepts the default User-Agent of these tools (gobuster/v3...).
    • Hardening: Enable automatic brute-force protection policies on the load balancer or WAF (e.g., corporate Rate Limiting).

  • Official Sources:
  • Architecture and Purpose: SQLMap is an automated engine for the identification, exploitation, and dumping of SQL injection (SQLi) vulnerabilities. It is compatible with a vast range of relational databases (MySQL, MSSQL, PostgreSQL, Oracle). It uses six structured exploitation techniques: boolean-blind, time-blind, error-based, UNION query, stacked queries, and out-of-band.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Explotación silenciosa de un parámetro vulnerable, saltándose la protección WAF con un random agent
    sqlmap -u "http://10.10.99.100/product.php?id=1" --batch --dbs --random-agent --level=3 --risk=2
    # 2. Dump directo de la tabla de usuarios de una base de datos específica e inyección de tamper para evadir firmas
    sqlmap -u "http://10.10.99.100/product.php?id=1" -D portel_db -T users --dump --tamper=charencode,space2comment
  • Critical Flags and Parameters:
    • --batch: Runs the program in a non-interactive mode (automatically makes the recommended default decisions).
    • --random-agent: Uses a random web browser User-Agent header in each request to bypass static validations.
    • --tamper: Loads SQL payload obfuscation scripts (e.g. encoding in Hex, altering spaces to comments /**/) to evade application firewalls.
    • --dbs: Lists the software databases of the target server.
  • ** Purple Team Approach and Detection Signatures:**
    • WAF (ModSecurity): SQL injection alerts based on patterns like keywords UNION SELECT, comments --, or database system functions (version(), user(), database()).
    • Mitigation: Apply prepared statements or query parameterization at the code development level (OWASP ASVS).

  • Official Sources:
  • Architecture and Purpose: Nikto is a very noisy but highly effective open-source web server vulnerability scanner. It performs tests on servers looking for over 6,700 potentially dangerous files and programs, checks for outdated server versions, misconfigurations, and insecure directives in HTTP headers.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Escaneo rápido de un host web guardando el resultado en formato HTML interactivo
    nikto -h http://10.10.99.100 -o reporte_nikto.html -Format htm
    # 2. Escaneo web desactivando los escaneos SSL lentos y aplicando tuning de inyección de comandos y archivos expuestos
    nikto -h http://10.10.99.100 -Tuning 1,2,3,4,d -no-ssl
  • Critical Flags and Parameters:
    • -h: Specifies the IP address or domain of the server to scan.
    • -Tuning: Filters the tests to run (1: interesting files, 2: misconfigurations, 3: information leaks, 4: command injections, d: discovery).
    • -no-ssl: Disables validation on HTTPS ports.
  • ** Purple Team Approach and Detection Signatures:**
    • Firewall Detection: Nikto generates thousands of web requests in a few seconds. It is immediately blocked by any basic WAF.
    • Mitigation: Configure the perimeter WAF to dynamically identify and ban IP addresses that show this recurring web scanning pattern.

🔑 Phase 2: Credential and Brute Force Attack (TA0006 - Credential Access)

Sección titulada «🔑 Fase 2: Ataque de Credenciales y Fuerza Bruta (TA0006 - Credential Access)»

Identity compromise and cracking of stolen hashes.

  • Official Sources:
  • Architecture and Purpose: Hydra is one of the fastest and most reliable parallel network password cracking tools. It supports dozens of logical authentication protocols (SSH, RDP, SMB, HTTP-FORM-GET, FTP, Telnet). It uses an asynchronous thread model to quickly test user and password combinations against an exposed port.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Fuerza bruta sobre SSH con usuario fijo y lista rockyou, limitando la concurrencia operativa a 4 hilos para evitar caídas del servicio
    hydra -l portel_user -P /usr/share/wordlists/rockyou.txt 10.10.99.100 ssh -t 4
    # 2. Ataque a un panel de administración web enviando peticiones POST con mensaje de error controlado
    hydra -L users.txt -P passwords.txt 10.10.99.100 http-post-form "/admin/login.php:user=^USER^&pass=^PASS^:F=invalid password"
  • Critical Flags and Parameters:
    • -l / -L: Defines a fixed user or a path to a user list, respectively.
    • -p / -P: Defines a fixed password or a path to a password dictionary.
    • -t: Configures the number of simultaneous concurrent connection tasks (logical threads) per target.
    • -V: Enables detailed console output to visualize each combination being tested in real-time.
  • ** Purple Team Approach and Detection Signatures:**
    • Windows Security Log: Event ID 4625 (Login failure) generated massively within seconds.
    • Linux System Logs (/var/log/auth.log): Recurring messages such as Failed password for... or Connection closed by... originating from the same IP.
    • Kaizen Defense: Implement account lockout policies after 3 consecutive login failures (Account Lockout Policy) and enable MFA.

  • Official Sources:
  • Architecture and Purpose: These are the two king tools for offline hash cracking. John the Ripper primarily uses CPU power, processing file formats and hashes very flexibly. Hashcat, on the other hand, is focused on the GPU, using low-level APIs (such as CUDA or OpenCL) to crack billions of hashes per second in parallel through dictionary, rule, and structured mask attacks.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Crackeo de hashes NTLMv2 (Active Directory) con GPU mediante ataque de diccionario y reglas avanzadas
    hashcat -m 5600 ntlmv2_hashes.txt /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best64.rule -o descifradas.txt
    # 2. Ataque híbrido con John the Ripper extrayendo previamente el hash de un archivo ZIP cifrado
    zip2john backup.zip > backup.hash
    john --wordlist=/usr/share/wordlists/rockyou.txt backup.hash
  • Critical Flags and Parameters (Hashcat):
    • -m: Specifies the numeric signature of the hash type to crack (e.g. 1000 for NTLM, 5600 for NTLMv2, 1800 for sha512crypt).
    • -a: Sets the attack type (0: Dictionary, 3: Brute Force / Mask, 6: Hybrid Dictionary + Mask).
    • -o: Defines the output file where the cracked passwords will be written.
  • ** Purple Team Approach and Detection Signatures:**
    • Local Attack: When run locally on the attacker's machine, it generates no network traffic or events on the victim's systems during cracking.
    • Proactive Defense: The SOC must exhaustively monitor anomalous access that could allow initial hash acquisition (e.g., read access to SAM database files, Active Directory NTDS.dit backups, or system process dumps).

🚀 Phase 3: Post-Exploitation, Lateralization, and AD Access (TA0008 - Lateral Movement)

Sección titulada «🚀 Fase 3: Post-Explotación, Lateralización y Acceso AD (TA0008 - Lateral Movement)»

Once initial access is compromised, these tools allow expanding control across the internal infrastructure.

  • Official Sources:
  • Architecture and Purpose: Mimikatz is a fundamental post-exploitation tool in Windows. It communicates directly with low-level Windows APIs to inject itself into the addressed virtual memory space of the Local Security Authority Subsystem Service (LSASS - lsass.exe). Once injected, it can dump cleartext passwords from credential providers like WDigest, NTLM hashes, Kerberos tickets (Golden / Silver tickets), and SAM hashes.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Habilitar privilegios de depuración y volcar contraseñas en texto claro y hashes NTLM de la memoria de LSASS
    privilege::debug
    sekurlsa::logonpasswords
    # 2. Volcar la base de datos SAM local para obtener hashes NTLM locales
    token::elevate
    lsadump::sam
  • Critical Flags and Parameters:
    • privilege::debug: Requests SeDebugPrivilege privileges at the Windows process level, necessary to interact with the memory of other system processes.
    • sekurlsa::logonpasswords: Executes the active credential extraction module from the LSASS space.
  • ** Purple Team Approach and Detection Signatures:**
    • Sysmon Event ID 10 (Process Access): Immediate alerts when an unauthorized process (such as a terminal or an anomalous script) attempts to access and read the memory of lsass.exe with access mask 0x1F0FFF or 0x1010.
    • Antivirus / EDR: Highly controlled static signatures. Intense obfuscation or memory injection (reflect dll loading) is required to execute without being blocked.
    • Defensive Mitigation: Mandatory activation of LSA protection in the domain GPO (RunAsPPL in registry) and disabling WDigest credentials in memory.

  • Official Sources:
  • Architecture and Purpose: BloodHound is a powerful visual analysis tool for Active Directory environments that uses graph theory to reveal hidden relationships and critical attack paths. SharpHound (its collector) gathers domain information by making LDAP logical queries to domain controllers, seeking to enumerate group members, permissions on AD objects, active system sessions, and trust policies.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Ejecución del colector SharpHound recopilando todos los métodos de consulta lógicos y guardando la información en un archivo zip encriptado
    .\SharpHound.exe --CollectionMethod All --Domain portelcore.com --ZipFileName portel_ad_data.zip
    # 2. Ejecución sigilosa evitando realizar conexiones anómalas de lectura a equipos remotos (excluyendo detección de sesiones)
    .\SharpHound.exe --CollectionMethod DCOnly --Domain portelcore.com
  • Critical Flags and Parameters:
    • --CollectionMethod All: Collects absolutely all available telemetry (groups, computers, policies, sessions, ACLs).
    • --CollectionMethod DCOnly: Performs logical queries only to the primary domain controller via LDAP, reducing network noise on member machines.
  • ** Purple Team Approach and Detection Signatures:**
    • Domain Auditing: Massive query traffic through LDAP port 389 looking for unusual properties originating from hosts without a corporate administrative role.
    • Defensive Mitigation: Restrict the number of unauthenticated or anomalous LDAP queries through the implementation of AD read restriction policies and the deployment of AD object honeypots (AD Honeytokens).

  • Official Sources:
  • Architecture and Purpose: Impacket is an outstanding collection of Python-based scripts for direct programmatic interaction with low-level Windows protocols (MSRPC, SMB, Kerberos, NetBIOS). It allows analysts to perform remote administration and protocol exploitation without relying on native compiled Windows binaries.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Volcado remoto completo de credenciales locales y dominio (SAM, LSA y secretos) utilizando protocolo DRSUAPI
    impacket-secretsdump portelcore.com/Administrator:portel_pass@10.10.99.100
    # 2. Ejecución remota sigilosa interactuando exclusivamente con consultas e inyecciones lógicas de Windows Management Instrumentation (WMI)
    impacket-wmiexec -hashes aad3b435b51404eeaad3b435b51404ee:8846f7eaee8fb117ad06bdd830b7586c portel_user@10.10.99.100
  • Critical Flags and Parameters:
    • -hashes: Allows remote authentication using NTLM hashes (Pass-the-Hash), without requiring knowledge of the target user's cleartext password.
    • -k: Enables remote authentication using Kerberos instead of NTLM.
  • ** Purple Team Approach and Detection Signatures:**
    • Sysmon Event ID 1 (Process Creation): wmiexec.py generates a process on the destination that unmistakably executes the cmd.exe /Q /c ... > \\127.0.0.1\ADMIN$\... syntax. This logical pattern should immediately alert the SOC.
    • Firewall Detection: Monitor unusual SMB transfers involving hidden system shares such as ADMIN$ or C$.

  • Official Sources:
  • Architecture and Purpose: Responder is the leading tool for credential poisoning and capture in local area networks (LAN). It acts by passively listening to erroneous local domain name resolution UDP requests based on legacy protocols (LLMNR, NBT-NS, and MDNS). When a machine on the local network cannot resolve a host and sends a general network query, Responder impersonates that name in real-time, forcing the victim machine to attempt authentication against it, thereby capturing its NTLMv1 or NTLMv2 hashes.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Ejecución interactiva envenenando tráfico local de la interfaz eth0 con análisis WPAD activo
    responder -I eth0 -r -d -w -F
    # 2. Análisis puramente pasivo de la red local mapeando qué sistemas envían peticiones LLMNR/NBT-NS sin envenenar
    responder -I eth0 -A
  • Critical Flags and Parameters:
    • -I: Specifies the physical local network interface to listen to and monitor.
    • -r: Proactively poisons orphaned local NetBIOS queries.
    • -w: Enables the injection of a fake WPAD proxy server to transparently capture browser credentials.
  • ** Purple Team Approach and Detection Signatures:**
    • Network Signatures: SOC detection of multiple LLMNR (UDP port 5355) or NBT-NS (UDP port 137) response packets originating from an IP that is neither the domain controller nor a registered DNS.
    • Defensive Mitigation: Mandatory corporate-wide disabling of LLMNR and NetBIOS via GPO and enabling MDNS or mDNS resolution security.

⚙️ Phase 4: Reverse Engineering and Binary Exploitation (Binex)

Sección titulada «⚙️ Fase 4: Ingeniería Inversa y Explotación de Binarios (Binex)»

Audit and analysis of compiled code to identify memory overflow vulnerabilities or bypass local validations.

  • Official Sources:
  • Architecture and Purpose: They are cutting-edge tools for reverse engineering and static analysis of compiled binaries (PE, ELF, Mach-O). Ghidra (developed by the NSA) provides a highly intuitive and modular visual suite with a C decompiler. Radare2, on the other hand, is an extremely fast and powerful console framework, ideal for quick terminal automations and rapid debugging of low-level logic flows.
  • Advanced Commands and Practical Cases (Radare2):
    Ventana de terminal
    # 1. Abrir un archivo compilado ELF en modo escritura, analizar todas las funciones y entrar al desensamblador interactivo
    r2 -w -A ./malicious_elf
    # 2. Comandos en consola de Radare2 para visualizar el desensamblado de la función principal
    [r2]> afl # Listar todas las funciones del programa detectadas
    [r2]> s main # Mover el cursor del depurador a la dirección física de la función main
    [r2]> pdf # Mostrar el código desensamblado del bloque de la función activa
    [r2]> ood # Volver a abrir el binario en caliente en modo depuración interactiva
  • ** Purple Team Approach and Detection Signatures:**
    • Offline Analysis: As it is local offline static code analysis, it does not generate network telemetry or alter production system logs.
    • Forensic Use: The malware analyst uses these suites to identify anomalous program network calls, internally injected weak cryptographic algorithms, or static code signatures to compile their perimeter detection YARA rules.

  • Official Sources:
  • Architecture and Purpose: GDB is the standard debugger for GNU/Linux systems. It is used for dynamic analysis and real-time debugging of compiled C/C++ binaries. It allows for injecting logical breakpoints, modifying the processor's instruction register flow (EIP/RIP) on the fly, injecting direct assembly code into memory, and diagnosing serious logical errors such as Buffer Overflows.
  • Advanced Commands and Practical Cases:
    Ventana de terminal
    # 1. Abrir un binario vulnerable, setear un punto de interrupción en la función vulnerable y ejecutar el programa inyectando un patrón de desbordamiento largo
    gdb -q ./vuln_server
    (gdb) break vuln_function
    (gdb) run $(python3 -c "print('A' * 140)")
    (gdb) info registers eip # Consultar el contenido exacto del registro de puntero de instrucción del procesador
    (gdb) x/20x $esp # Mostrar las direcciones lógicas hexadecimales directamente en la pila del sistema
  • ** Purple Team Approach and Detection Signatures:**
    • Binary Hardening (Mitigations): Ensure strict enablement of GCC compiler protections such as ASLR (Address Space Layout Randomization), DEP (Data Execution Prevention / NX Bit), and Stack Canaries during Portelcore binary compilation to invalidate overflow exploits developed via GDB.

Ensure security in your controlled exercises by validating that the traces of your offensive tools are properly documented:

  • ✓ Telemetry Mapping: Every execution of intrusive AD tools (e.g. BloodHound) has a correlated log detection rule in the SOC.
  • ✓ Antivirus Evasion: The use of Mimikatz or LOTL download utilities (LOLBAS) is previously evaluated in local sandbox environments to contrast the visibility of Event ID 4688 traces.
  • ✓ Zero Secret Exposure: Memory dumps and hash files (ntlmv2_hashes.txt) generated during the pentest are stored locally on encrypted volumes inaccessible to the public.