Module 2 · Initial Access — Phishing & Beyond

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 22, 2026
5 min read
Read as

Last updated: April 29, 2026

Phishing infrastructure, HTML smuggling, password spray, OAuth consent, and exposed-service exploitation.

Initial access is how you get the first foothold: a user clicking your phishing link, a password spray landing on a weak account, an exposed service with a known CVE. For most red teams in 2026, initial access is still phishing. This module covers phishing infrastructure, payload delivery, and the alternatives when phishing fails.

The initial access menu in 2026

  • Phishing: macro-enabled documents are dead, but HTML smuggling, container files (ISO, VHD, IMG), LNK with embedded payloads, and OAuth consent phishing all work
  • Credential stuffing: leaked credentials from breaches reused at your target. Especially productive against external auth portals (VPN, Citrix, Exchange OWA)
  • Password spray: single password (Season2026!, Company@2026) tried against every account. Slow enough to avoid lockouts
  • Exposed services: vulnerable externally-reachable software. Confluence, Exchange, ManageEngine, old VPN appliances
  • OAuth/consent phishing: tricking users into granting a malicious app permissions to their M365 account. Sidesteps MFA
  • Supply chain: compromise a vendor who has access. Usually off-scope for red team engagements but worth naming
  • Physical / drop attacks: USB drops, rogue access point, badge cloning

Phishing infrastructure

Minimum viable phishing setup:

  • Domain: an “aged” domain with reputation — 6+ months of passive existence, some benign web content. Freshly-registered domains are blocked by modern email security
  • Sending infrastructure: SPF, DKIM, DMARC correctly set up (so you pass authentication). Warm up the IP gradually
  • Payload delivery: link to your site, which serves HTML that delivers the payload — direct attachments are scanned hard
  • Redirector tier: cheap VPSes that proxy to your backend C2. Lose a redirector, rotate quickly
  • TLS: Let’s Encrypt works but shorter validity. Reputable TLS signals “legitimate” to scanners
  • Tracking: unique URL per target; log who clicked, what User-Agent, whether they entered credentials

Payload options for 2026

Microsoft disabled VBA macros from internet-sourced docs by default in 2022. Payload delivery shifted:

  • HTML smuggling: JavaScript in a web page assembles a binary client-side and triggers download. Bypasses gateway AV that inspects HTTP transfers
  • ISO / IMG / VHD containers: Mark-of-the-Web was not propagating through these until recently — still works against unpatched Windows
  • LNK files: shortcut files with an embedded PowerShell or cmd.exe command. In a ZIP or ISO to survive email transit
  • Browser-in-browser (BITB): phishing login pages that look like OS-native auth prompts. Effective against M365 users
  • OAuth consent: the attacker registers an app asking for Mail.Read, Files.Read.All. User consents, attacker has persistent access. No credential theft needed

A phishing example — end to end

  1. Register domain invoice-staging.com 6 months ago; park with static content
  2. Configure Mailgun or self-hosted Postfix on a VPS; SPF/DKIM/DMARC published
  3. Recon target via LinkedIn; build list of 30 target emails
  4. Pretext: “Your Q1 invoice requires action” — tailored to the target’s industry
  5. Email links to https://invoice-staging.com/view?id=unique-per-target
  6. Landing page serves an HTML-smuggling payload that assembles a ZIP client-side
  7. ZIP contains an LNK that launches a PowerShell stager
  8. Stager downloads an in-memory Cobalt Strike beacon from your redirector
  9. Beacon calls back to your team server
  10. You now have initial access on one endpoint

Password spray — the quiet option

Password spray avoids lockouts by trying one password across many accounts. Effective when the organisation uses default passwords, seasonal passwords, or has no MFA on public auth portals.

# MSOLSpray — Azure/M365 password spray
msolspray users.txt 'Spring2026!'

# Spray at a realistic pace: 1 attempt per account per hour, during business hours
# Smart-lockout thresholds at most orgs don't trigger at this pace

Build the user list from OSINT: LinkedIn scraping, email format inferencing ([email protected]), harvesting from breach data.

OAuth consent phishing

Register a malicious Azure app, request scopes like Mail.Read, send target a consent link:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
  client_id=YOUR_MALICIOUS_APP&
  response_type=code&
  redirect_uri=https://your-handler&
  scope=Mail.Read Files.Read.All User.Read offline_access

# Victim sees a legitimate Microsoft consent screen
# Clicks Accept → you have OAuth tokens → persistent mailbox access
# Bypasses MFA (consent is granted AFTER MFA)

This has become a go-to initial access technique because it sidesteps MFA. Defensive controls: administrator-consent-required for apps, app-consent policies, Microsoft Defender for Cloud Apps monitoring.

Exposed services — the opportunistic path

Before heavy phishing, scan the external surface. Targets frequently yield:

  • Outdated Confluence (CVE-2022-26134, later variants)
  • ManageEngine ADSelfService Plus
  • Exchange (unpatched ProxyShell, ProxyNotShell variants)
  • VPN appliances (FortiOS, Ivanti/Pulse — many RCEs published in 2023-2025)
  • Jenkins, GitLab, SonarQube left accessible from internet
  • Subdomain-takeover-able DNS records pointing to deprovisioned cloud resources

OSINT + Shodan queries often find these in the first afternoon of an engagement.

Staying under radar

  • Use residential proxies for reconnaissance. Traffic from cloud IPs is trivially flagged
  • Rotate infrastructure frequently — a burned domain/IP stays burned
  • Minimise requests. Every shodan hit, every nmap scan, every login attempt is a potential detection
  • Don’t download large payloads over new infrastructure until you trust it is un-surveilled
  • Your payload should blend in. A PowerShell process on an Excel parent is a red flag; a signed binary loading a DLL sideloaded is harder

Handing off to foothold

Once your beacon checks in, the initial access phase is complete. Next is establishing persistence and escalating. That’s where C2 frameworks and their capabilities matter — covered in Module 3.

Ethics and legal

  • Written authorization before ANY action, no exceptions
  • Every target (email, IP, URL) must be within scope
  • Do not exfiltrate real PII; prove capability with test data or small samples you immediately destroy
  • Document everything; log every command executed; keep a chain of custody
  • If you accidentally touch out-of-scope systems, stop and inform the trusted agent immediately
🧠
Check your understanding

Module Quiz · 15 questions

Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.

Want this for your team?

Custom team training + practitioner advisory

Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.

Book team training call Replies in 4 working hrs · India-only · Senior consultants