[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A745ZHRE7B6PAM0F3AAHXV":3,"skill-same:01M7A745ZHRE7B6PAM0F3AAHXV":111},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":74,"commitSha":75,"skillDirectory":76,"forksCount":14,"repositoryHtmlUrl":77,"repositoryHomepageUrl":6,"ownerHtmlUrl":78,"ownerBlogUrl":6,"ownerDescription":79,"updatedAt":80,"install":81,"resources":94},"01M7A745ZHRE7B6PAM0F3AAHXV","extracting-credentials-from-memory-dump",null,"Extracts cached credentials, password hashes, Kerberos tickets, and authentication tokens from Windows memory dumps using Volatility 3, Mimikatz, and pypykatz. Use when performing memory forensics or incident response on an LSASS or full memory dump and you need to recover credentials or Kerberos material for investigation.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: extracting-credentials-from-memory-dump\ndescription: Extracts cached credentials, password hashes, Kerberos tickets, and\n  authentication tokens from Windows memory dumps using Volatility 3, Mimikatz,\n  and pypykatz. Use when performing memory forensics or incident response on an\n  LSASS or full memory dump and you need to recover credentials or Kerberos material\n  for investigation.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- forensics\n- credential-extraction\n- memory-forensics\n- volatility\n- mimikatz\n- password-hashes\n- incident-response\nmitre_attack:\n- T1005\n- T1074\n- T1119\n- T1070\n- T1003\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - reconnaissance\n  - positioning\n  - initial-access\n  techniques:\n  - id: T1555\n    name: Credentials from Password Stores\n    tactic: reconnaissance\n    source: attack\n  - id: T1555.003\n    name: 'Credentials from Password Stores: Credentials from Web Browsers'\n    tactic: reconnaissance\n    source: attack\n  - id: T1539\n    name: Steal Web Session Cookie\n    tactic: positioning\n    source: attack\n  - id: F1006\n    name: Account Takeover\n    tactic: initial-access\n    source: f3\n  - id: F1006.002\n    name: 'Account Takeover: Exposed Login Credential'\n    tactic: initial-access\n    source: f3\n  - id: F1006.001\n    name: 'Account Takeover: Exposed API Key'\n    tactic: initial-access\n    source: f3\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- RS.AN-03\n- DE.AE-02\n- RS.MA-01\n---\n\n# Extracting Credentials from Memory Dump\n\n## When to Use\n- During incident response to determine what credentials an attacker had access to\n- When assessing the scope of credential compromise after a breach\n- For identifying accounts that need immediate password resets\n- When investigating lateral movement and pass-the-hash\u002Fpass-the-ticket attacks\n- For recovering encryption keys or authentication tokens from process memory\n\n## Prerequisites\n- Memory dump in raw, ELF, or crash dump format\n- Volatility 3 with Windows symbol tables\n- Mimikatz (for offline analysis of extracted LSASS dumps)\n- pypykatz (Python implementation of Mimikatz for Linux-based analysis)\n- Understanding of Windows authentication (NTLM, Kerberos, DPAPI)\n- Appropriate legal authorization for credential extraction\n\n## Workflow\n\n### Step 1: Prepare Tools and Verify Memory Dump\n\n```bash\n# Install analysis tools\npip install volatility3 pypykatz\n\n# Verify memory dump integrity\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw\n\n# Identify the OS version\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.info\n\n# Verify LSASS process exists in memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.pslist | grep -i lsass\n\n# Output:\n# PID    PPID   ImageFileName   Offset(V)        Threads  Handles  SessionId\n# 684    564    lsass.exe       0xffffe00123456   35       1234     0\n```\n\n### Step 2: Extract Credential Hashes with Volatility\n\n```bash\n# Dump SAM database hashes from memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.hashdump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhashdump.txt\n\n# Output format:\n# User           RID    LM Hash                          NTLM Hash\n# Administrator  500    aad3b435b51404eeaad3b435b51404ee  fc525c9683e8fe067095ba2ddc971889\n# Guest          501    aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0\n# DefaultAccount 503    aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0\n# svcbackup      1001   aad3b435b51404eeaad3b435b51404ee  2b576acbe6bcfda7294d6bd18041b8fe\n\n# Extract LSA secrets\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.lsadump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsadump.txt\n\n# Extract cached domain credentials\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.cachedump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fcachedump.txt\n```\n\n### Step 3: Dump LSASS Process Memory for Detailed Analysis\n\n```bash\n# Dump LSASS process memory (PID from Step 1)\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.memmap --pid 684 --dump \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_dump\u002F\n\n# Alternative: Dump all files associated with LSASS\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.dumpfiles --pid 684 \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_files\u002F\n\n# Use procdump plugin for cleaner process dump\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.dumpfiles \\\n   --pid 684 -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002F\n\n# Rename the dump file for pypykatz\u002Fmimikatz\nmv \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_dump\u002Fpid.684.dmp \\\n   \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp\n```\n\n### Step 4: Extract Credentials with pypykatz\n\n```bash\n# Run pypykatz against the full memory dump\npypykatz lsa minidump \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fpypykatz_results.txt 2>&1\n\n# Run pypykatz against the raw memory dump directly\npypykatz rekall \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fpypykatz_full.txt 2>&1\n\n# Parse pypykatz output for structured analysis\npython3 \u003C\u003C 'PYEOF'\nimport json\n\n# pypykatz can also output JSON\nimport subprocess\nresult = subprocess.run(\n    ['pypykatz', 'lsa', 'minidump', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp', '-j'],\n    capture_output=True, text=True\n)\n\nif result.stdout:\n    data = json.loads(result.stdout)\n\n    print(\"=== EXTRACTED CREDENTIALS ===\\n\")\n\n    for session_key, session in data.get('logon_sessions', {}).items():\n        username = session.get('username', 'Unknown')\n        domain = session.get('domainname', '')\n        logon_server = session.get('logon_server', '')\n        logon_time = session.get('logon_time', '')\n        sid = session.get('sid', '')\n\n        if username and username != '(null)':\n            print(f\"Session: {domain}\\\\{username}\")\n            print(f\"  SID: {sid}\")\n            print(f\"  Logon Server: {logon_server}\")\n            print(f\"  Logon Time: {logon_time}\")\n\n            # NTLM hashes\n            msv = session.get('msv_creds', [])\n            for cred in msv:\n                nt = cred.get('NThash', '')\n                lm = cred.get('LMHash', '')\n                if nt:\n                    print(f\"  NTLM Hash: {nt}\")\n                if lm:\n                    print(f\"  LM Hash: {lm}\")\n\n            # Kerberos tickets\n            kerb = session.get('kerberos_creds', [])\n            for cred in kerb:\n                password = cred.get('password', '')\n                if password:\n                    print(f\"  Kerberos Password: {password}\")\n                tickets = cred.get('tickets', [])\n                for ticket in tickets:\n                    print(f\"  Kerberos Ticket: {ticket.get('server', '')} (type: {ticket.get('enc_type', '')})\")\n\n            # WDigest (plaintext on older systems)\n            wdigest = session.get('wdigest_creds', [])\n            for cred in wdigest:\n                pwd = cred.get('password', '')\n                if pwd:\n                    print(f\"  WDigest Password: {pwd}\")\n\n            # DPAPI master keys\n            dpapi = session.get('dpapi_creds', [])\n            for cred in dpapi:\n                mk = cred.get('masterkey', '')\n                if mk:\n                    print(f\"  DPAPI Master Key: {mk[:40]}...\")\n\n            print()\nPYEOF\n```\n\n### Step 5: Extract Kerberos Tickets and Tokens\n\n```bash\n# Extract Kerberos tickets from memory\npython3 \u003C\u003C 'PYEOF'\nimport subprocess, json\n\nresult = subprocess.run(\n    ['pypykatz', 'lsa', 'minidump', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp', '-j', '-k', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fkerberos\u002F'],\n    capture_output=True, text=True\n)\n\n# pypykatz exports .kirbi files to the specified directory\nimport os\nkirbi_dir = '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fkerberos\u002F'\nif os.path.exists(kirbi_dir):\n    for f in os.listdir(kirbi_dir):\n        if f.endswith('.kirbi'):\n            filepath = os.path.join(kirbi_dir, f)\n            size = os.path.getsize(filepath)\n            print(f\"  Kerberos ticket: {f} ({size} bytes)\")\nPYEOF\n\n# Search process memory for authentication tokens and API keys\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings --pid 684 | \\\n   grep -iE '(bearer |authorization:|api[_-]key|token=|password=|secret=)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fauth_strings.txt\n\n# Search for cloud credentials in memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings | \\\n   grep -iE '(AKIA[A-Z0-9]{16}|ASIA[A-Z0-9]{16}|aws_secret_access_key)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Faws_credentials.txt\n\n# Search for browser session tokens\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings | \\\n   grep -iE '(session_id=|PHPSESSID=|JSESSIONID=|_ga=|sid=)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsession_tokens.txt\n```\n\n### Step 6: Compile Credential Findings Report\n\n```bash\n# Generate credential compromise assessment\npython3 \u003C\u003C 'PYEOF'\nprint(\"\"\"\nCREDENTIAL EXTRACTION REPORT\n==============================\nCase: 2024-001\nSource: memory.raw (16 GB Windows 10 memory dump)\nAnalysis Date: 2024-01-20\n\nCOMPROMISED ACCOUNTS:\n=====================\n\n1. Local Accounts (SAM):\n   - Administrator (RID 500): NTLM hash extracted\n   - svcbackup (RID 1001): NTLM hash extracted\n   - SQLService (RID 1002): NTLM hash extracted\n\n2. Domain Accounts (LSASS):\n   - CORP\\\\admin.user: NTLM hash + Kerberos TGT\n   - CORP\\\\svc.backup: NTLM hash + plaintext password (WDigest)\n   - CORP\\\\domain.admin: Kerberos TGS tickets for 3 services\n\n3. Cached Domain Credentials:\n   - CORP\\\\helpdesk.user: DCC2 hash\n   - CORP\\\\it.manager: DCC2 hash\n\n4. Cloud Credentials:\n   - AWS Access Key: AKIA... found in process memory (PID 3456)\n   - Azure AD token found in browser process memory\n\nIMMEDIATE ACTIONS REQUIRED:\n- Reset passwords for all listed accounts\n- Revoke and rotate AWS access keys\n- Invalidate all active Kerberos tickets (krbtgt reset)\n- Review DPAPI-protected data for additional exposure\n\"\"\")\nPYEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| LSASS (Local Security Authority) | Windows process managing authentication, storing credentials in memory |\n| NTLM hash | NT LAN Manager hash of user password used for authentication |\n| Kerberos TGT | Ticket Granting Ticket allowing request of service tickets |\n| WDigest | Legacy authentication protocol storing plaintext passwords in memory (pre-Win8.1) |\n| DPAPI | Data Protection API using master keys derived from user credentials |\n| DCC2 (Domain Cached Credentials) | Cached domain password hashes for offline logon |\n| LSA Secrets | Encrypted service account passwords and other secrets stored by LSA |\n| Pass-the-Hash | Attack technique using extracted NTLM hashes without knowing the plaintext password |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Volatility 3 | Memory forensics framework with hashdump, lsadump, cachedump plugins |\n| pypykatz | Python implementation of Mimikatz for cross-platform LSASS analysis |\n| Mimikatz | Windows credential extraction tool (used offline against dumps) |\n| secretsdump.py | Impacket tool for extracting secrets from SAM\u002FSYSTEM\u002FSECURITY |\n| hashcat | Password hash cracking for recovered NTLM and DCC2 hashes |\n| John the Ripper | Alternative password cracking tool |\n| Rubeus | Kerberos ticket manipulation and extraction tool |\n| Impacket | Python toolkit for working with Windows network protocols and credentials |\n\n## Common Scenarios\n\n**Scenario 1: Post-Breach Credential Assessment**\nExtract all cached credentials from LSASS memory to determine which accounts were exposed, prioritize password resets based on privilege level, check for golden ticket material (krbtgt hash), assess if cloud credentials were accessible.\n\n**Scenario 2: Lateral Movement Investigation**\nExtract NTLM hashes and Kerberos tickets to understand how the attacker moved between systems, identify pass-the-hash\u002Fpass-the-ticket artifacts, correlate extracted credentials with network logon events in event logs.\n\n**Scenario 3: Ransomware Operator Credential Theft**\nAnalyze pre-encryption memory dump for Mimikatz execution evidence, extract all available credential types, determine if domain admin credentials were obtained, assess if krbtgt was compromised (golden ticket), plan credential rotation strategy.\n\n**Scenario 4: Cloud Credential Theft from Endpoint**\nSearch endpoint memory for AWS access keys, Azure tokens, and GCP service account keys stored by CLI tools and browsers, identify exposed cloud permissions, immediately rotate discovered credentials, audit cloud audit logs for unauthorized access.\n\n## Output Format\n\n```\nCredential Extraction Summary:\n  Source: memory.raw (16 GB, Windows 10 Build 19041)\n  LSASS PID: 684\n\n  Credentials Recovered:\n    Local NTLM Hashes:        4 accounts\n    Domain NTLM Hashes:       3 accounts\n    Kerberos TGTs:             2 tickets\n    Kerberos TGS:              5 service tickets\n    Plaintext Passwords:       1 (WDigest - svc.backup)\n    Cached Domain Creds:       2 DCC2 hashes\n    LSA Secrets:               3 service account passwords\n    DPAPI Master Keys:         4 keys recovered\n    Cloud Credentials:         1 AWS access key, 1 Azure token\n\n  Highest Privilege Compromised: Domain Admin (CORP\\domain.admin)\n\n  Recommended Actions:\n    - Immediate: Reset all extracted account passwords\n    - Immediate: Rotate AWS access key AKIA...\n    - Urgent: Double krbtgt password reset (golden ticket mitigation)\n    - High: Revoke all Kerberos tickets via krbtgt rotation\n    - Medium: Audit DPAPI-protected data exposure\n```\n","# Extracting Credentials from Memory Dump\n\n## When to Use\n- During incident response to determine what credentials an attacker had access to\n- When assessing the scope of credential compromise after a breach\n- For identifying accounts that need immediate password resets\n- When investigating lateral movement and pass-the-hash\u002Fpass-the-ticket attacks\n- For recovering encryption keys or authentication tokens from process memory\n\n## Prerequisites\n- Memory dump in raw, ELF, or crash dump format\n- Volatility 3 with Windows symbol tables\n- Mimikatz (for offline analysis of extracted LSASS dumps)\n- pypykatz (Python implementation of Mimikatz for Linux-based analysis)\n- Understanding of Windows authentication (NTLM, Kerberos, DPAPI)\n- Appropriate legal authorization for credential extraction\n\n## Workflow\n\n### Step 1: Prepare Tools and Verify Memory Dump\n\n```bash\n# Install analysis tools\npip install volatility3 pypykatz\n\n# Verify memory dump integrity\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw\n\n# Identify the OS version\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.info\n\n# Verify LSASS process exists in memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.pslist | grep -i lsass\n\n# Output:\n# PID    PPID   ImageFileName   Offset(V)        Threads  Handles  SessionId\n# 684    564    lsass.exe       0xffffe00123456   35       1234     0\n```\n\n### Step 2: Extract Credential Hashes with Volatility\n\n```bash\n# Dump SAM database hashes from memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.hashdump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhashdump.txt\n\n# Output format:\n# User           RID    LM Hash                          NTLM Hash\n# Administrator  500    aad3b435b51404eeaad3b435b51404ee  fc525c9683e8fe067095ba2ddc971889\n# Guest          501    aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0\n# DefaultAccount 503    aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0\n# svcbackup      1001   aad3b435b51404eeaad3b435b51404ee  2b576acbe6bcfda7294d6bd18041b8fe\n\n# Extract LSA secrets\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.lsadump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsadump.txt\n\n# Extract cached domain credentials\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.cachedump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fcachedump.txt\n```\n\n### Step 3: Dump LSASS Process Memory for Detailed Analysis\n\n```bash\n# Dump LSASS process memory (PID from Step 1)\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.memmap --pid 684 --dump \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_dump\u002F\n\n# Alternative: Dump all files associated with LSASS\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.dumpfiles --pid 684 \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_files\u002F\n\n# Use procdump plugin for cleaner process dump\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.dumpfiles \\\n   --pid 684 -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002F\n\n# Rename the dump file for pypykatz\u002Fmimikatz\nmv \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_dump\u002Fpid.684.dmp \\\n   \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp\n```\n\n### Step 4: Extract Credentials with pypykatz\n\n```bash\n# Run pypykatz against the full memory dump\npypykatz lsa minidump \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fpypykatz_results.txt 2>&1\n\n# Run pypykatz against the raw memory dump directly\npypykatz rekall \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fpypykatz_full.txt 2>&1\n\n# Parse pypykatz output for structured analysis\npython3 \u003C\u003C 'PYEOF'\nimport json\n\n# pypykatz can also output JSON\nimport subprocess\nresult = subprocess.run(\n    ['pypykatz', 'lsa', 'minidump', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp', '-j'],\n    capture_output=True, text=True\n)\n\nif result.stdout:\n    data = json.loads(result.stdout)\n\n    print(\"=== EXTRACTED CREDENTIALS ===\\n\")\n\n    for session_key, session in data.get('logon_sessions', {}).items():\n        username = session.get('username', 'Unknown')\n        domain = session.get('domainname', '')\n        logon_server = session.get('logon_server', '')\n        logon_time = session.get('logon_time', '')\n        sid = session.get('sid', '')\n\n        if username and username != '(null)':\n            print(f\"Session: {domain}\\\\{username}\")\n            print(f\"  SID: {sid}\")\n            print(f\"  Logon Server: {logon_server}\")\n            print(f\"  Logon Time: {logon_time}\")\n\n            # NTLM hashes\n            msv = session.get('msv_creds', [])\n            for cred in msv:\n                nt = cred.get('NThash', '')\n                lm = cred.get('LMHash', '')\n                if nt:\n                    print(f\"  NTLM Hash: {nt}\")\n                if lm:\n                    print(f\"  LM Hash: {lm}\")\n\n            # Kerberos tickets\n            kerb = session.get('kerberos_creds', [])\n            for cred in kerb:\n                password = cred.get('password', '')\n                if password:\n                    print(f\"  Kerberos Password: {password}\")\n                tickets = cred.get('tickets', [])\n                for ticket in tickets:\n                    print(f\"  Kerberos Ticket: {ticket.get('server', '')} (type: {ticket.get('enc_type', '')})\")\n\n            # WDigest (plaintext on older systems)\n            wdigest = session.get('wdigest_creds', [])\n            for cred in wdigest:\n                pwd = cred.get('password', '')\n                if pwd:\n                    print(f\"  WDigest Password: {pwd}\")\n\n            # DPAPI master keys\n            dpapi = session.get('dpapi_creds', [])\n            for cred in dpapi:\n                mk = cred.get('masterkey', '')\n                if mk:\n                    print(f\"  DPAPI Master Key: {mk[:40]}...\")\n\n            print()\nPYEOF\n```\n\n### Step 5: Extract Kerberos Tickets and Tokens\n\n```bash\n# Extract Kerberos tickets from memory\npython3 \u003C\u003C 'PYEOF'\nimport subprocess, json\n\nresult = subprocess.run(\n    ['pypykatz', 'lsa', 'minidump', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp', '-j', '-k', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fkerberos\u002F'],\n    capture_output=True, text=True\n)\n\n# pypykatz exports .kirbi files to the specified directory\nimport os\nkirbi_dir = '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fkerberos\u002F'\nif os.path.exists(kirbi_dir):\n    for f in os.listdir(kirbi_dir):\n        if f.endswith('.kirbi'):\n            filepath = os.path.join(kirbi_dir, f)\n            size = os.path.getsize(filepath)\n            print(f\"  Kerberos ticket: {f} ({size} bytes)\")\nPYEOF\n\n# Search process memory for authentication tokens and API keys\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings --pid 684 | \\\n   grep -iE '(bearer |authorization:|api[_-]key|token=|password=|secret=)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fauth_strings.txt\n\n# Search for cloud credentials in memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings | \\\n   grep -iE '(AKIA[A-Z0-9]{16}|ASIA[A-Z0-9]{16}|aws_secret_access_key)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Faws_credentials.txt\n\n# Search for browser session tokens\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings | \\\n   grep -iE '(session_id=|PHPSESSID=|JSESSIONID=|_ga=|sid=)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsession_tokens.txt\n```\n\n### Step 6: Compile Credential Findings Report\n\n```bash\n# Generate credential compromise assessment\npython3 \u003C\u003C 'PYEOF'\nprint(\"\"\"\nCREDENTIAL EXTRACTION REPORT\n==============================\nCase: 2024-001\nSource: memory.raw (16 GB Windows 10 memory dump)\nAnalysis Date: 2024-01-20\n\nCOMPROMISED ACCOUNTS:\n=====================\n\n1. Local Accounts (SAM):\n   - Administrator (RID 500): NTLM hash extracted\n   - svcbackup (RID 1001): NTLM hash extracted\n   - SQLService (RID 1002): NTLM hash extracted\n\n2. Domain Accounts (LSASS):\n   - CORP\\\\admin.user: NTLM hash + Kerberos TGT\n   - CORP\\\\svc.backup: NTLM hash + plaintext password (WDigest)\n   - CORP\\\\domain.admin: Kerberos TGS tickets for 3 services\n\n3. Cached Domain Credentials:\n   - CORP\\\\helpdesk.user: DCC2 hash\n   - CORP\\\\it.manager: DCC2 hash\n\n4. Cloud Credentials:\n   - AWS Access Key: AKIA... found in process memory (PID 3456)\n   - Azure AD token found in browser process memory\n\nIMMEDIATE ACTIONS REQUIRED:\n- Reset passwords for all listed accounts\n- Revoke and rotate AWS access keys\n- Invalidate all active Kerberos tickets (krbtgt reset)\n- Review DPAPI-protected data for additional exposure\n\"\"\")\nPYEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| LSASS (Local Security Authority) | Windows process managing authentication, storing credentials in memory |\n| NTLM hash | NT LAN Manager hash of user password used for authentication |\n| Kerberos TGT | Ticket Granting Ticket allowing request of service tickets |\n| WDigest | Legacy authentication protocol storing plaintext passwords in memory (pre-Win8.1) |\n| DPAPI | Data Protection API using master keys derived from user credentials |\n| DCC2 (Domain Cached Credentials) | Cached domain password hashes for offline logon |\n| LSA Secrets | Encrypted service account passwords and other secrets stored by LSA |\n| Pass-the-Hash | Attack technique using extracted NTLM hashes without knowing the plaintext password |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Volatility 3 | Memory forensics framework with hashdump, lsadump, cachedump plugins |\n| pypykatz | Python implementation of Mimikatz for cross-platform LSASS analysis |\n| Mimikatz | Windows credential extraction tool (used offline against dumps) |\n| secretsdump.py | Impacket tool for extracting secrets from SAM\u002FSYSTEM\u002FSECURITY |\n| hashcat | Password hash cracking for recovered NTLM and DCC2 hashes |\n| John the Ripper | Alternative password cracking tool |\n| Rubeus | Kerberos ticket manipulation and extraction tool |\n| Impacket | Python toolkit for working with Windows network protocols and credentials |\n\n## Common Scenarios\n\n**Scenario 1: Post-Breach Credential Assessment**\nExtract all cached credentials from LSASS memory to determine which accounts were exposed, prioritize password resets based on privilege level, check for golden ticket material (krbtgt hash), assess if cloud credentials were accessible.\n\n**Scenario 2: Lateral Movement Investigation**\nExtract NTLM hashes and Kerberos tickets to understand how the attacker moved between systems, identify pass-the-hash\u002Fpass-the-ticket artifacts, correlate extracted credentials with network logon events in event logs.\n\n**Scenario 3: Ransomware Operator Credential Theft**\nAnalyze pre-encryption memory dump for Mimikatz execution evidence, extract all available credential types, determine if domain admin credentials were obtained, assess if krbtgt was compromised (golden ticket), plan credential rotation strategy.\n\n**Scenario 4: Cloud Credential Theft from Endpoint**\nSearch endpoint memory for AWS access keys, Azure tokens, and GCP service account keys stored by CLI tools and browsers, identify exposed cloud permissions, immediately rotate discovered credentials, audit cloud audit logs for unauthorized access.\n\n## Output Format\n\n```\nCredential Extraction Summary:\n  Source: memory.raw (16 GB, Windows 10 Build 19041)\n  LSASS PID: 684\n\n  Credentials Recovered:\n    Local NTLM Hashes:        4 accounts\n    Domain NTLM Hashes:       3 accounts\n    Kerberos TGTs:             2 tickets\n    Kerberos TGS:              5 service tickets\n    Plaintext Passwords:       1 (WDigest - svc.backup)\n    Cached Domain Creds:       2 DCC2 hashes\n    LSA Secrets:               3 service account passwords\n    DPAPI Master Keys:         4 keys recovered\n    Cloud Credentials:         1 AWS access key, 1 Azure token\n\n  Highest Privilege Compromised: Domain Admin (CORP\\domain.admin)\n\n  Recommended Actions:\n    - Immediate: Reset all extracted account passwords\n    - Immediate: Rotate AWS access key AKIA...\n    - Urgent: Double krbtgt password reset (golden ticket mitigation)\n    - High: Revoke all Kerberos tickets via krbtgt rotation\n    - Medium: Audit DPAPI-protected data exposure\n```\n",{"name":5,"tags":25,"author":33,"domain":34,"license":15,"version":35,"mitre_f3":36,"nist_csf":63,"subdomain":67,"description":7,"mitre_attack":68},[26,27,28,29,30,31,32],"forensics","credential-extraction","memory-forensics","volatility","mimikatz","password-hashes","incident-response","mahipal","cybersecurity","1.0",{"tactics":37,"version":41,"techniques":42},[38,39,40],"reconnaissance","positioning","initial-access","1.1",[43,47,50,53,57,60],{"id":44,"name":45,"source":46,"tactic":38},"T1555","Credentials from Password Stores","attack",{"id":48,"name":49,"source":46,"tactic":38},"T1555.003","Credentials from Password Stores: Credentials from Web Browsers",{"id":51,"name":52,"source":46,"tactic":39},"T1539","Steal Web Session Cookie",{"id":54,"name":55,"source":56,"tactic":40},"F1006","Account Takeover","f3",{"id":58,"name":59,"source":56,"tactic":40},"F1006.002","Account Takeover: Exposed Login Credential",{"id":61,"name":62,"source":56,"tactic":40},"F1006.001","Account Takeover: Exposed API Key",[64,65,66],"RS.AN-03","DE.AE-02","RS.MA-01","digital-forensics",[69,70,71,72,73],"T1005","T1074","T1119","T1070","T1003","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fextracting-credentials-from-memory-dump","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":82,"prompt":92,"zipAvailable":93},[83,86,89],{"tool":84,"command":85},"npx","npx skills add NeelakshSaxena\u002FVayu --skill extracting-credentials-from-memory-dump",{"tool":87,"command":88},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill extracting-credentials-from-memory-dump",{"tool":90,"command":91},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill extracting-credentials-from-memory-dump","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002FSKILL.md",true,[95,99,105],{"path":96,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":98,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":100,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fapi-reference.md","REFERENCE","参考文档",2653,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002Freferences\u002Fapi-reference.md",{"path":106,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fagent.py","SCRIPT","脚本",9589,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002Fscripts\u002Fagent.py",[112,119,126,133,140,147],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]