liveBook · Manning

Chapter 1: Threat-modeling agentic pipelines

What you will learn in chapter 1 of AI Agents for Offensive Security

This chapter introduces AI-assisted offensive-security pipelines in which artifacts, agents, humans, and tools have distinct roles in controlled decision-making.

After this chapter you will be able to

Section by section

Introduction

This chapter introduces AI-assisted offensive-security pipelines in which artifacts, agents, humans, and tools have distinct roles in controlled decision-making.

Key terms: decision support, human judgment, offensive security, AI agents, artifacts, pipelines, structured outputs, reconnaissance, information flow, tools

1.1 Offensive Security

Defines offensive security as authorized attack simulation for finding weaknesses and explains why AI’s contextual reasoning helps offensive and defensive teams adapt to changing environments.

Key terms: offensive security, penetration testing, red teaming, vulnerability assessments, ethical hacking, defensive security, adaptability, attack surfaces, contextual reasoning, reconnaissance

1.1.1 Traditional offensive security workflows

This section characterizes traditional penetration testing as a deterministic, manually driven linear pipeline without AI-style feedback or reasoning.

Key terms: data collection, vulnerability assessment, risk scoring, attack-path planning, decision or handoff, classic penetration-testing pipeline, deterministic, manually driven, feedback, reasoning components

1.1.2 Best practices for offensive security

Establishes ethical operating practices for offensive security, introduces controlled AI agent pipelines, and clarifies red, blue, and purple team roles.

Key terms: authorized scope only, explicit, written permission, no production harm, follow the law, human oversight, protect sensitive data, AI agent pipelines, structured chains of intelligent agents, reasoning, repeatability

1.1.3 Why Tools Alone Are No Longer Enough

This section explains that capable security tools scale execution but not the contextual reasoning and coordination needed to turn overwhelming output into coherent, auditable action.

Key terms: tooling, execution, understanding, coverage, manual effort, cognitive burden, reconnaissance, findings, logs, metadata

1.2 Large language models (LLMs) as security tools

This section explains how LLMs generate useful language-based security insights, why they help interpret raw findings, and why their fallible outputs require human review.

Key terms: large language models (LLMs), deep neural networks, parameters, tokens, next likely token, probabilities, raw output, scanners, APIs, structured insight

1.2.1 Intelligence as a Component

This subsection contrasts task-executing security tools with context-aware AI intelligence and shows how adaptive pipelines can reduce noise while preserving human control.

Key terms: intelligent reporting, contextualized insights, human-centered controls, controlled experimentation, developer-centered, command-line tools, cron jobs, bash loops, context-aware agents, AI-agent pipelines

1.3 Introducing AI Agents: Reasoning That Acts

This section introduces AI agents as the component that turns an LLM's passive reasoning into objective-driven planning and action.

Key terms: LLMs, AI agent, reasoning, action plan, objectives, reasoning into action, patterns

1.3.1 What Is An AI Agent?

This section defines an AI agent as a goal-directed system that combines an LLM with orchestration, tools, memory, and knowledge to plan and act.

Key terms: LLM, AI agent, prompt, goal, behavior, reasoning model, orchestration, tools, memory, knowledge base

1.3.2 Why agents matter in offensive security

This section explains how AI agents address limits of traditional penetration testing by dynamically adapting reconnaissance and follow-up actions as environments change.

Key terms: penetration testing, attack vector, exploits, snapshot, reconnaissance agent, host enumeration, attack surface, naming patterns, admin endpoints, Laravel framework

1.3.3 Agentic Offensive-Security Workflow

This section describes how embedding an AI agent turns reconnaissance and penetration testing from static stages into an adaptive, context-aware feedback loop.

Key terms: AI agent, adaptive feedback loop, reconnaissance, penetration-testing stages, triages results, context-aware process

1.4 Pipelines: Information Routing Systems

This section defines a pipeline as the controlled routing of structured tool outputs through successive stages of an offensive-security engagement.

Key terms: pipeline, artifacts, information flow, structured outputs

1.4.1 Pipelines as the Organizing Principle

This section presents pipelines as structured, controlled workflows that route AI-agent reasoning through repeatable, auditable offensive-security stages.

Key terms: pipeline, functional components, order of operations, offensive-security workflow, reconnaissance, scanning and enumeration, ad-hoc scripts, automation, standardize, consistency

1.4.2 From Autonomy to Architecture

This section explains how pipelines turn potentially unpredictable agent autonomy into an auditable, scoped, and safe offensive-security architecture.

Key terms: autonomy, pipelines, agents, data, decisions, reproducible, measurable, ethical, approved scope, safety gates

1.4.3 Why pipelines matter

This section explains why pipelines deliberately route security information, preserving human authority while making agent-assisted decisions scalable and traceable.

Key terms: clarity, scalability, accountability, information routing systems, artifacts, objectives, approve escalation, agents assist with reasoning, authority, expertise expressed as structure

1.5 Artifacts provide precise decision-making in offensive security

This section establishes that offensive-security artifacts carry the information needed to make subsequent decisions, rather than being merely testing outputs.

Key terms: artifacts, inputs, open ports, resolved subdomains, response headers, authentication challenges

1.5.1 Artifacts as the Unit of Movement

This section defines artifacts as durable evidence that pipelines explicitly record and pass between testing stages, separating information flow from decisions.

Key terms: artifact, durable record, evidence, interpretations, structured, recorded, handed forward intentionally, inputs, testing stage, first-class objects

1.5.2 Where Intelligence Enters the System

This subsection locates intelligence in the agent’s decisions about which tool-produced artifacts a pipeline should advance, deprioritize, or escalate.

Key terms: intelligence, artifacts, tools, pipelines, human intent, agent, advance, deprioritize, escalation, routing

1.6 Why This Matters to You

This section connects AI-agent pipelines to practical cybersecurity work, emphasizing their productivity benefits for independent bug hunters and freelancers.

Key terms: LLMs, agents, pipelines, efficiency, accuracy, repeatability, Independent Bug Hunters and Freelancers, personal force multiplier, data triage, pattern recognition

1.6.1 Penetration Testers and Red Teams

This subsection explains how pipelines preserve engagement output as reusable playbooks that compound team knowledge and consistency over time.

Key terms: pipelines, reusable playbooks, replay, extend, evolving library of tactics, team knowledge, consistency across engagements, cumulative pipelines

1.6.2 Purple Teams and Detection Engineers

This subsection explains how offensive-pipeline data creates a feedback loop that helps purple teams and detection engineers improve defenses.

Key terms: offensive data, pipelines, telemetry, feedback loop, red-team pipeline, Blue teams, logs, SIEMs, anomaly detectors, detection logic

1.6.3 Blue Teams and SOC Analysts

Shows how blue teams and SOC analysts can safely use AI pipelines to turn recorded offensive activity into repeatable detection and incident-response improvement.

Key terms: AI pipelines, recorded runs, sandbox, attacker behavior, alert coverage, incident response procedures, one-time red-team findings, continuous training exercises, detection, response

1.7 Summary

This summary connects LLM reasoning, agent capabilities, human oversight, and structured pipelines to scalable yet controlled offensive-security outcomes.

Where this is used later

Concepts explained in this chapter

Chapter 2: Building your first AI agent →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.