Black Friday Deals For Authors Are On Now!

Leanpub Header

Skip to main content

Offensive Security & Penetration Testing

These books have a total suggested price of $180. Get them now for only $69.00!
About

About

About the Bundle

Books

About the Books

Red Team Operations

Red Team Operations

Red Team Operations is the definitive practical guide to planning and executing authorized adversary-emulation engagements. Written for penetration testers, red teamers, and offensive-security professionals, this book walks through the entire operation lifecycle with one guiding principle: authorization, threat fidelity, and measurable improvement.


From rules of engagement and threat modeling through reconnaissance, initial access, command-and-control, privilege escalation, persistence, credential access, lateral movement, Active Directory attack paths, and objective completion, every offensive technique is paired with its detection and mitigation. The book goes further than technique catalogs by embedding every move in a decision framework: why this technique, why now, and what the defender should do about it.


You will learn to scope engagements responsibly, map operations to MITRE ATT&CK for precise communication, instrument your actions for observability, and translate findings into defensive improvements. The book includes ready-to-use templates for rules of engagement, engagement plans, ATT&CK-mapped operations, findings reports, and detection mappings so you can adopt the artifacts directly in your work.

Whether you are testing a security program for the first time or refining red team practice at scale, this book treats adversary emulation as what it actually is: a measurement instrument for defensive maturity, grounded in professional standards, bounded by explicit authorization, and designed to produce findings that matter. Red teaming works because it is done carefully. This book shows you how.

Mastering the OSCP

Mastering the OSCP

Ask anyone who holds the OSCP and most will tell you the same thing: it was the hardest thing they did all year, and the achievement they are proudest of. The OSCP is not a checklist certification. It is a performance test that drops you into a private network of vulnerable machines, asks you to compromise them under real time pressure, and then demands a professional report proving exactly how you did it.

Mastering the OSCP: A Practical Guide to Passing the OffSec Certified Professional Exam is a hands-on, evidence-driven field manual built to close the gap between understanding a technique and executing it on an unknown machine in the middle of the night with the clock running. That gap is not closed by watching videos. It is closed by repetition, disciplined note-taking, and practice under pressure, and this book shows you how to build all three.

The exam has changed substantially in recent years, and older study guides can quietly mislead you. This book is current. It explains what the OSCP and OSCP+ certifications actually are and why employers value them, walks through the exam format, rules, and scoring verified against OffSec’s own published guides, and covers the move to scaled scoring for exams taken from 1 December 2026. You will then build a realistic 12-week or 24-week study plan that survives real life, and set up and harden your Kali attack box.

From there, the book delivers a complete penetration testing methodology. You will work through port and service enumeration, web application attacks, client-side attacks and public exploits, password attacks, antivirus evasion basics, Linux and Windows privilege escalation, and port forwarding, tunneling, and pivoting. Three dedicated chapters take you deep into Active Directory, from enumeration to lateral movement to compromising a full Active Directory set. You will also learn where Metasploit helps, where it is restricted, and how candidates commonly misuse it.

Passing takes more than technical skill, so the final chapters focus on what decides the result: note-taking and evidence collection, exam-day strategy and time management, and writing a report that meets OffSec’s standards. There is an honest, practical chapter on recovering from a failed attempt, followed by guidance on the career paths the OSCP opens up.

Written for aspiring penetration testers, SOC analysts moving into offensive security, systems administrators, and anyone who has attempted the exam before and fallen short, this book gives you the method, the habits, and the confidence to walk in prepared. Every technique is intended for authorized labs, the exam environment, and permitted engagements only.

AI-Powered Web Security Penetration Testing

AI-Powered Web Security Penetration Testing

In June 2025, an autonomous AI system called XBOW climbed to the number one spot on HackerOne’s US leaderboard, ahead of every human researcher. A few months later, an AI system found all twelve zero-day vulnerabilities in a coordinated OpenSSL release. AI-assisted offensive security is no longer an experiment. It is now the default way the work gets done.


AI-Powered Web Security Penetration Testing: Tools, Techniques, and Real-World Lessons is a practical guide to working in this new reality. AI has moved beyond suggesting exploit ideas in a chat window. It now drives complete tool-using loops across reconnaissance, scanning, fuzzing, exploit analysis, and reporting. This book shows you how that shift works in practice, which tools deserve your trust, where they break down, and how to fold them into a workflow that still respects written scope, safe-harbor rules, and responsible disclosure.

Written for intermediate security professionals, ethical hackers, bug bounty hunters, and DevSecOps engineers, the book covers the full modern offensive stack. You will learn how a pentest copilot is built and governed, how AI transforms attack surface mapping and vulnerability template generation, and how fuzzing evolves from random bytes into hypothesis-driven testing. You will also see how large language models speed up exploit chain analysis, triage, and evidence-backed reporting.

The book also tackles the other side of the equation: testing applications that are themselves powered by AI. Dedicated chapters walk you through prompt injection in practice, a complete pentester’s checklist for the OWASP Top 10 for LLM Applications 2026, and red teaming AI agents for excessive agency, tool poisoning, and MCP weaknesses. You will examine how autonomous offensive agents behave in the wild and where the field is heading next.

Every chapter opens with a verified real-world scenario, walks through a reproducible workflow, compares the strengths and limits of the available tools, and closes with a hands-on lab you can run safely in DVWA, OWASP Juice Shop, or PortSwigger Web Security Academy. Thirteen labs take you from baselining your current workflow to building your own rules of engagement and a chain-aware verification harness.

This is not a shortcut around authorization. It is a manual for using powerful new tools responsibly, so you can stay effective, credible, and ahead of the curve in a profession that is growing alongside its tools.

ARTEX AI Penetration Testing Framework Agent

ARTEX AI Penetration Testing Framework Agent

What if your penetration tester could plan its own attacks, run them, prove what it found, and never step outside its authorization?

ARTEX is an autonomous, agent-driven penetration testing framework. It is not a scanner with an AI wrapper. A team of language-model agents decides what to explore next, carries out the work and verifies the results. The platform records every decision, every command and every piece of evidence along the way. ARTEX AI Penetration Testing Framework Agent is the complete operator's guide to running it with confidence.

The guide is written from a live ARTEX 0.3.15 deployment and covers the console screen by screen. You start on the Dashboard and Chat, then move through Tasks, Findings, Traffic, Tool Runs, LLM Records, Assets and the Workspace. From there you go into the System pages, where models, agents, MCP servers, skills, tools, notifications and runtime settings are set up. Each chapter explains what the screen holds, which controls actually change behaviour and how that screen fits into a real engagement.

You will learn how to:

  • Understand the operating model. See how tasks, the shared asset graph, the exploration graph and findings fit together, and how the planner, worker and main agent divide the work.
  • Turn evidence into defensible findings. Follow the chain from an intent to a command, a recorded request and response, a proof, a verification and a retest.
  • Keep autonomy inside the lines. Use interception rules, asset blacklists, behaviour constraints and human approvals so an AI tester stays within scope.
  • Configure and extend the platform. Manage model profiles, limits and failover, agent roles and prompts, and the tool catalogue.
  • Operate it day to day. Read the logs, fix common failure modes, and deploy and harden ARTEX for ongoing use.

Four appendices add a full end-to-end engagement walkthrough, a troubleshooting guide, deployment and hardening advice for day-2 operations, and a console quick reference.

This book is for security engineers, red teamers and platform administrators who need to deploy, govern and audit an AI pentest system. If you want to know exactly why your autonomous tester did what it did, and be able to show a client the evidence on demand, start here.

Breach and Attack Simulation

Breach and Attack Simulation

**Breach and Attack Simulation** is a build-it-yourself manual for standing up a repeatable, defensible security validation program. Rather than trusting coverage claims, you will run controlled, attack-like exercises against your own infrastructure and measure whether controls detect, prevent, contain, and respond — then track the trend across months.

**What you will build**

- **Threat-informed emulation plans.** Use STRIDE to model architecture-level threats, pick a threat actor from evidence rather than assumption, and express scope as machine-readable YAML that automation can consume.

- **A working emulation stack.** Run MITRE Caldera operations with custom adversary profiles and planners, execute Atomic Red Team tests by ID or technique family, and build a scenario library with a documented kill switch.

- **Attack-path analysis.** Collect BloodHound/Neo4j graphs, query them with Cypher, and convert reachable paths into testable assertions — including cloud and container paths.

- **A safe lab.** Stand up a three-environment model with segmented networks, a hardened Squid egress proxy that blocks lab-to-production traffic and logs every attempt, an Active Directory range with seeded misconfigurations, and a containerized detection-development environment with Wazuh and Elastic.

- **Identity, endpoint, phishing, and cloud validation.** Test name resolution poisoning, Kerberoasting, Linux and Windows privilege escalation, phishing-resistant MFA coverage, lateral movement over WinRM, RDP, SSH, WMI, and PowerShell Remoting, Gophish campaigns, Evilginx2 in a lab tenant, plus Azure, GCP, and Kubernetes IAM and RBAC paths.

- **Detection engineering and automation.** Write Sigma rules, convert and validate them into Splunk SPL, Elastic Security, and Sentinel KQL, measure detection latency and false-positive budgets, and wire purple-team regression jobs into GitHub Actions and GitLab CI with ephemeral runners.

- **Scoring, reporting, and closed-loop remediation.** Build a versioned composite score mapped to D3FEND, produce an executive report and quarterly package, detect remediation drift, and re-test fixes automatically.

Chapter 14 runs a complete multi-day breach simulation end to end and packages the evidence. Appendices include a rules-of-engagement template, an operational readiness checklist, a 30/60/90-day roadmap, and a reusable scorecard template.

Social Engineering Attack and Defense

Social Engineering Attack and Defense

Every year, organizations pour billions into firewalls, endpoint detection, and zero-trust architectures, and every year attackers walk right past all of it by asking a receptionist to hold a door or sending an email that simply looks like it came from the CEO. Social Engineering Attack & Defense is the practical, in-depth guide to the one domain of cybersecurity where technology alone will never be enough: the human being at the keyboard.

Written for security professionals, IT managers, red teamers, awareness trainers, and curious technologists, this book walks through the psychology attackers exploit, from authority bias and manufactured urgency to reciprocity and social proof, and the techniques they actually use in the field: phishing, spear phishing, business email compromise, vishing, physical pretexting, and the AI-powered deepfakes reshaping the threat landscape. You'll go deep on reconnaissance and target selection, dissect real BEC case studies step by step, and learn how criminal groups have used a single phone call to compromise household-name companies.

But this is not just an attacker's playbook. Equal weight is given to building the defense: designing a human risk management program that actually changes behavior, running red team and purple team engagements that test your organization the way a real adversary would, layering technical controls that reinforce the human element, and executing incident response when, despite every precaution, an attack succeeds.

Every chapter blends real-world case studies (the 2020 Twitter compromise, the Target HVAC breach, a $25 million deepfake wire fraud) with reproducible technical examples, sample policies, and reference frameworks. No prior security background is required beyond general familiarity with email and corporate IT. You'll close the book not just informed, but equipped to test, train, and defend the human firewall in your own organization.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub