SKILL: Modern Initial Access
Metadata
Description
Initial access techniques checklist: phishing (spear/smishing), credential stuffing, exposed service exploitation, supply chain attacks, watering hole, VPN/RDP brute force, public-facing application exploitation. Maps to MITRE ATT&CK TA0001. Use when planning initial access phases of red team engagements.
Trigger Phrases
Use this skill when the conversation involves any of:
initial access, phishing, spear phishing, credential stuffing, exposed service, supply chain, watering hole, VPN brute force, RDP attack, MITRE TA0001, initial foothold
Instructions for Claude
When this skill is active:
- Load and apply the full methodology below as your operational checklist
- Follow steps in order unless the user specifies otherwise
- For each technique, consider applicability to the current target/context
- Track which checklist items have been completed
- Suggest next steps based on findings
Full Methodology
Modern Initial Access
Introduction
Typical Initial Access Vectors
- Email with malware attached/linked
- Most attacks using attached malware won't work
- Out of the box protection may not cover
PDF, ISO, IMG, HTML, SVG, PPTM, PPSM, ACCDE
- Most URL-based attacks do work
- domain's reputation, age, category should be sound
- domain should use https
- limit number of GET elements and their names
- use HTML Smuggling to evade
- get your domain warmed up (send some legitimate emails first with no attachment and links)
- Advanced attacks may involve delivering backdoored trusted applications (e.g., older Electron apps with V8 exploits) via phishing to bypass application control like WDAC.
- Spear-phishing/ phishing / stealing valid credentials
- Check your mail with Phishious before sending it to your victim
- use decode-spam-headers to analyze returned SMTP headers
- Be aware that default Microsoft Office settings now block macros in files downloaded from the internet (marked with
MOTW). Success often requires significant social engineering to convince users to bypass these protections or using alternative delivery methods (e.g., containers that don't propagate MOTW, signed add-ins).
- images and link increase spam score, be wary of it
- don't use
no-reply like usernames
- send through
GoPhis -> AWS SOCAT :587 -> smtp.gmail.com -> @target.com
- link to websites on trusted domains, like cloud-facing resources
- make sure your webserver blocks automated bots
- Deep‑fake voice or video social‑engineering calls (help‑desk or executive impersonation) to obtain password resets or approve MFA prompts. Generative‑AI tools make cloning voices trivial.
- Business Email Compromise (BEC) / OAuth consent phishing that targets finance or vendor‑portal users, yielding cloud‑token access even where MFA is enabled.
- Malicious OneNote
.one attachments and OneDrive "Add to Shortcut" abuse: embedded HTA/JS payloads bypass Office macro blocking and spread via cloud sync.
- Excel blocks untrusted Internet-origin XLL add-ins by default (M365, 2023+). Smuggled XLLs inside containers may still be blocked once MOTW propagates.
- Malicious browser extensions (Chrome, Edge, Firefox) delivered through fake Web Store listings; hijack session cookies or inject scripts into authenticated SaaS sessions.
- attackers register malicious cloud apps and trick users into granting scopes, giving token-based access that bypasses MFA
- Reusing stolen credentials against external single factor VPN, gateways, etc
- Password Spraying against Office365, custom login pages, VPN gateways
- Exposed RDP with weak credentials and lacking controls
- Unpatched known vulnerable perimeter device, application bugs, default credentials, etc
- Rarely HID-emulating USB sticks
- WiFi Evil Twin -> Route WPA2 Enterprise -> NetNTLMv2 hash cracking -> authenticated network access -> Responder
- Plugging into on-premises LAN -> Responder/mitm6/Ldaprelayx
- SEO poisoning / paid‑search malvertising (e.g., fake PuTTY & WinSCP ads, dominant loader delivery 2024–25) and "quishing" PDFs whose QR codes redirect victims to mobile OAuth login pages
- Consent‑/token‑phishing and Adversary‑in‑the‑Middle (AiTM) proxy kits that steal OAuth session cookies or proxy MFA (e.g., EvilProxy, Tycoon, Dadsec). These vectors bypass MFA by tricking users into granting access to rogue Azure AD / Google Workspace apps.
- Supply‑chain compromise of developer ecosystems:
- malicious NPM / PyPI typosquat packages
- poisoned GitHub Actions or CI/CD secrets exfiltration
- container‑registry deception (imageless Docker Hub repos or
curl | bash installers).
- First contact often occurs on developer workstations.
- Mass‑exploited perimeter and edge‑device zero‑days (e.g., Ivanti Connect Secure (such as CVE-2023-46805, CVE-2024-21887), MOVEit Transfer (such as CVE-2023-34362), Citrix Bleed) enabling unauthenticated remote code execution before credentials come into play. Maintain a live "current CVEs exploited‑in‑the‑wild" table and apply virtual patching/WAF rules where upgrades lag.
- Cloud & Kubernetes misconfigurations:
- exposed S3 buckets allowing upload‑then‑execute objects
- SSRF into EC2 IMDSv1 or GCP metadata to steal instance credentials
- open Kubernetes API/Argo CD dashboards, and leaked Azure SAS tokens that grant cross‑tenant data extraction.
- OIDC Workload Identity Federation exposed: stolen GKE/EKS service‑account tokens grant cross‑cluster privilege escalation.
- AWS STS credentials embedded in shareable URLs (
GetFederationToken, presigned S3, etc.) leak temporary keys to attackers.
- Mobile initial‑access vectors:
- smishing or WhatsApp/Telegram lures
- QR‑code invoice/resumé phishing that lands on mobile browsers
- rogue Mobile Device Management (MDM) enrolment profiles granting full device admin.
- Passkey/WebAuthn phishing pages that spoof the biometric prompt to hijack FIDO sessions.
- Sideload invitations via fake Apple TestFlight or Test Fairy links deliver malicious iOS/Android apps outside official store review.
- Collaboration‑app abuse:
- malicious Microsoft Teams/Slack/Discord apps with overbroad OAuth scopes
- slash‑command token vacuum
- SharePoint Framework (SPFx) app sideloading
- Discord/Telegram CDN links hosting first‑stage binaries.
- If WinRM over HTTPS (WinRMS, port 5986) is enabled (it's not by default) and its Channel Binding setting remains at the default "Relaxed", it becomes vulnerable to NTLM relay attacks. Relayed credentials (e.g., from coerced HTTP/SMB/LDAP) can grant RCE. Ironically, enabling WinRMS to "harden" a system by disabling HTTP WinRM (port 5985, which is relay-resistant due to internal encryption) can introduce this vulnerability. Key technical details:
- Standard WinRM (port 5985) uses HTTP with SPNEGO; channel binding is enabled by default, so NTLM relay fails unless the attacker controls TLS.
- WinRMS (port 5986) runs over HTTPS; if
CbtHardeningLevel is not set to Strict, credentials can still be relayed despite TLS.
- Channel Binding (CBT) can be set to None (disabled), Relaxed (optional), or Strict (required)
- Mitigation:
winrm set winrm/config/service/auth '@{CbtHardeningLevel="Strict"}'
- Prefer Kerberos or certificate-based auth for WinRM; monitor and reduce NTLM usage.
- Exploiting misconfigured Power Platform services (e.g., Power Apps with overly permissive shared connections or abusing Power Query for native SQL execution against on-prem data gateways).
Command & Control
- Use a two-stage Mythic C2 as our command and control
- Stage one should be lean and hard to detect, it would be used for situational awareness
- Merlin for Linux (no upstream commits since 2023, still functional)
- Poseidon + Apfell for macOS
- Apollo in shellcode form for Windows
- to get rid of apollo console
- open it via
detect-it-easy, select pe and uncheck readonly
- then select
WINDOWS_GUI in Subsystem inside IMAGE_OPTIONAL_HEADER
- also notice apollo is a 32-bit executable
- also checkout Nimplant or others
- Nighthawk
- Stage two should be in-memory, inline-execute and feature reach
- Nighthawk, Cobalt Strike, etc
Exec/DLL to SHELLCODE
For detailed information on converting executables and DLLs to shellcode, including:
- Embedding shellcode into loaders
- Backdooring legitimate PE executables
- Tools like Donut, sRDI, Pe2shc and Amber
- Open-source shellcode loaders like ScareCrow and NimPackt-v1
See the Shellcode documentation.
EDR Evasion Techniques
For detailed information on EDR evasion techniques, including:
- Malware Virtualization
- API Unhooking
- Early Cascade Injection
- Killing Bit techniques
- Call Stack Obfuscation
- Sleep Obfuscation
See the EDR Evasion documentation
📎 Detailed content (full examples / references / data tables) has been split into reference.md in the same directory; use Read to load the relevant section on demand.
📎 Reference Document Notice: this skill is adapted from an upstream open-source repository; the following reference documents are not distributed with this library: edr.md, shellcode.md. The key points of the related topics are retained in the corresponding descriptions in this document; if you need the expanded content, grep the library using keywords from the body text or search on your own.
1---2name: offensive-initial-access3description: "Initial access techniques: phishing (spear/SMS), credential stuffing, exposed service exploitation, supply-chain attacks, watering hole, VPN/RDP brute force, public app RCE. Signals: initial access, phishing, credential stuffing, exposed service, supply chain."4zh-signals: "初始访问技术清单:钓鱼(鱼叉/短信)、凭据填充、暴露服务利用、供应链攻击、 watering hole、VPN/RDP 爆破、公网应用 RCE。信号:初始访问,钓鱼,凭据填充,暴露服务,供应链。"5when-to-use: Modern Initial Access6metadata:7 source: https://skillmd.com/skills/dangeroussong/offensive-initial-access8---910# SKILL: Modern Initial Access1112## Metadata13- **Skill Name**: initial-access14- **Folder**: offensive-initial-access15- **Source**: https://github.com/SnailSploit/offensive-checklist/blob/main/initial-access.md1617## Description18Initial access techniques checklist: phishing (spear/smishing), credential stuffing, exposed service exploitation, supply chain attacks, watering hole, VPN/RDP brute force, public-facing application exploitation. Maps to MITRE ATT&CK TA0001. Use when planning initial access phases of red team engagements.1920## Trigger Phrases21Use this skill when the conversation involves any of:22`initial access, phishing, spear phishing, credential stuffing, exposed service, supply chain, watering hole, VPN brute force, RDP attack, MITRE TA0001, initial foothold`2324## Instructions for Claude2526When this skill is active:271. Load and apply the full methodology below as your operational checklist282. Follow steps in order unless the user specifies otherwise293. For each technique, consider applicability to the current target/context304. Track which checklist items have been completed315. Suggest next steps based on findings3233---3435## Full Methodology3637# Modern Initial Access3839## Introduction4041### Typical Initial Access Vectors4243- Email with malware attached/linked44 - Most attacks using attached malware won't work45 - Out of the box protection may not cover `PDF, ISO, IMG, HTML, SVG, PPTM, PPSM, ACCDE`46 - Most URL-based attacks do work47 - domain's reputation, age, category should be sound48 - domain should use https49 - limit number of GET elements and their names50 - use HTML Smuggling to evade51 - get your domain warmed up (send some legitimate emails first with no attachment and links)52 - Advanced attacks may involve delivering backdoored trusted applications (e.g., older Electron apps with V8 exploits) via phishing to bypass application control like WDAC.53- Spear-phishing/ phishing / stealing valid credentials54 - Check your mail with [Phishious](https://github.com/CanIPhish/Phishious) before sending it to your victim55 - use [decode-spam-headers](https://github.com/mgeeky/decode-spam-headers) to analyze returned SMTP headers56 - Be aware that default Microsoft Office settings now block macros in files downloaded from the internet (marked with `MOTW`). Success often requires significant social engineering to convince users to bypass these protections or using alternative delivery methods (e.g., containers that don't propagate `MOTW`, signed add-ins).57 - images and link increase spam score, be wary of it58 - don't use `no-reply` like usernames59 - send through `GoPhis -> AWS SOCAT :587 -> smtp.gmail.com -> @target.com`60 - link to websites on trusted domains, like cloud-facing resources61 - make sure your webserver blocks automated bots62- Deep‑fake voice or video social‑engineering calls (help‑desk or executive impersonation) to obtain password resets or approve MFA prompts. Generative‑AI tools make cloning voices trivial.63- Business Email Compromise (BEC) / OAuth consent phishing that targets finance or vendor‑portal users, yielding cloud‑token access even where MFA is enabled.64- Malicious OneNote `.one` attachments and OneDrive "Add to Shortcut" abuse: embedded HTA/JS payloads bypass Office macro blocking and spread via cloud sync.65- Excel blocks untrusted Internet-origin XLL add-ins by default (M365, 2023+). Smuggled XLLs inside containers may still be blocked once MOTW propagates.66- Malicious browser extensions (Chrome, Edge, Firefox) delivered through fake Web Store listings; hijack session cookies or inject scripts into authenticated SaaS sessions.67- attackers register malicious cloud apps and trick users into granting scopes, giving token-based access that bypasses MFA68- Reusing stolen credentials against external single factor VPN, gateways, etc69- Password Spraying against Office365, custom login pages, VPN gateways70- Exposed RDP with weak credentials and lacking controls71- Unpatched known vulnerable perimeter device, application bugs, default credentials, etc72- Rarely HID-emulating USB sticks73- WiFi Evil Twin -> Route WPA2 Enterprise -> NetNTLMv2 hash cracking -> authenticated network access -> Responder74- Plugging into on-premises LAN -> Responder/mitm6/Ldaprelayx75- SEO poisoning / paid‑search malvertising (e.g., fake PuTTY & WinSCP ads, dominant loader delivery 2024–25) and "quishing" PDFs whose QR codes redirect victims to mobile OAuth login pages76- Consent‑/token‑phishing and Adversary‑in‑the‑Middle (AiTM) proxy kits that steal OAuth session cookies or proxy MFA (e.g., EvilProxy, Tycoon, Dadsec). These vectors bypass MFA by tricking users into granting access to rogue Azure AD / Google Workspace apps.77- Supply‑chain compromise of developer ecosystems:78 - malicious NPM / PyPI typosquat packages79 - poisoned GitHub Actions or CI/CD secrets exfiltration80 - container‑registry deception (imageless Docker Hub repos or `curl | bash` installers).81 - First contact often occurs on developer workstations.82- Mass‑exploited perimeter and edge‑device zero‑days (e.g., Ivanti Connect Secure (such as CVE-2023-46805, CVE-2024-21887), MOVEit Transfer (such as CVE-2023-34362), Citrix Bleed) enabling unauthenticated remote code execution **before** credentials come into play. Maintain a live "current CVEs exploited‑in‑the‑wild" table and apply virtual patching/WAF rules where upgrades lag.83- Cloud & Kubernetes misconfigurations:84 - exposed S3 buckets allowing upload‑then‑execute objects85 - SSRF into EC2 IMDSv1 or GCP metadata to steal instance credentials86 - open Kubernetes API/Argo CD dashboards, and leaked Azure SAS tokens that grant cross‑tenant data extraction.87 - OIDC Workload Identity Federation exposed: stolen GKE/EKS service‑account tokens grant cross‑cluster privilege escalation.88 - AWS STS credentials embedded in shareable URLs (`GetFederationToken`, presigned S3, etc.) leak temporary keys to attackers.89- Mobile initial‑access vectors:90 - smishing or WhatsApp/Telegram lures91 - QR‑code invoice/resumé phishing that lands on mobile browsers92 - rogue Mobile Device Management (MDM) enrolment profiles granting full device admin.93 - Passkey/WebAuthn phishing pages that spoof the biometric prompt to hijack FIDO sessions.94 - Sideload invitations via fake Apple TestFlight or Test Fairy links deliver malicious iOS/Android apps outside official store review.95- Collaboration‑app abuse:96 - malicious Microsoft Teams/Slack/Discord apps with overbroad OAuth scopes97 - slash‑command token vacuum98 - SharePoint Framework (SPFx) app sideloading99 - Discord/Telegram CDN links hosting first‑stage binaries.100- If WinRM over HTTPS (WinRMS, port 5986) is enabled (it's not by default) and its Channel Binding setting remains at the default "Relaxed", it becomes vulnerable to NTLM relay attacks. Relayed credentials (e.g., from coerced HTTP/SMB/LDAP) can grant RCE. Ironically, enabling WinRMS to "harden" a system by disabling HTTP WinRM (port 5985, which _is_ relay-resistant due to internal encryption) can introduce this vulnerability. Key technical details:101 - Standard WinRM (port 5985) uses HTTP with SPNEGO; channel binding is enabled by default, so NTLM relay fails unless the attacker controls TLS.102 - WinRMS (port 5986) runs over HTTPS; if `CbtHardeningLevel` is not set to **Strict**, credentials can still be relayed despite TLS.103 - Channel Binding (CBT) can be set to None (disabled), Relaxed (optional), or Strict (required)104 - Mitigation: `winrm set winrm/config/service/auth '@{CbtHardeningLevel="Strict"}'`105 - Prefer Kerberos or certificate-based auth for WinRM; monitor and reduce NTLM usage.106- Exploiting misconfigured Power Platform services (e.g., Power Apps with overly permissive shared connections or abusing Power Query for native SQL execution against on-prem data gateways).107108### Command & Control109110- Use a two-stage [Mythic C2](https://github.com/its-a-feature/Mythic) as our command and control111- Stage one should be lean and hard to detect, it would be used for situational awareness112 - [Merlin](https://github.com/MythicAgents/merlin) for Linux (no upstream commits since 2023, still functional)113 - [Poseidon](https://github.com/MythicAgents/poseidon) + [Apfell](https://github.com/MythicAgents/apfell) for macOS114 - [Apollo](https://github.com/MythicAgents/Apollo) in shellcode form for Windows115 - to get rid of apollo console116 - open it via `detect-it-easy`, select `pe` and uncheck `readonly`117 - then select `WINDOWS_GUI` in `Subsystem` inside `IMAGE_OPTIONAL_HEADER`118 - also notice apollo is a 32-bit executable119 - also checkout [Nimplant](https://github.com/MythicAgents/Nimplant) or [others](https://mythicmeta.github.io/overview/)120 - [Nighthawk](https://nighthawkc2.io/evanesco/)121- Stage two should be in-memory, inline-execute and feature reach122 - Nighthawk, Cobalt Strike, etc123124### Exec/DLL to SHELLCODE125126For detailed information on converting executables and DLLs to shellcode, including:127128- Embedding shellcode into loaders129- Backdooring legitimate PE executables130- Tools like Donut, sRDI, Pe2shc and Amber131- Open-source shellcode loaders like ScareCrow and NimPackt-v1132133See the Shellcode documentation.134135### EDR Evasion Techniques136137For detailed information on EDR evasion techniques, including:138139- Malware Virtualization140- API Unhooking141- Early Cascade Injection142- Killing Bit techniques143- Call Stack Obfuscation144- Sleep Obfuscation145146See the EDR Evasion documentation147148> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.149150> 📎 **Reference Document Notice**: this skill is adapted from an upstream open-source repository; the following reference documents are **not distributed with this library**: `edr.md`, `shellcode.md`. The key points of the related topics are retained in the corresponding descriptions in this document; if you need the expanded content, grep the library using keywords from the body text or search on your own.