Skip to main content

Caido: Core Tools

Master Caido’s core tools: Sitemap, HTTP History, Match & Replace, Replay, Automate, WebSockets.

Task 1: Introduction

Welcome to Caido: Core Tools!

You've mastered the basics of Caido - capturing traffic, filtering with HTTPQL, intercepting requests, and replaying them. Now it's time to level up your skills and dive deep into Caido's advanced core tools that will transform you into a proficient web application security tester.

This room focuses on the powerful features that separate casual testers from professionals. You'll learn to navigate complex application structures, automate repetitive tasks, and build efficient testing workflows that save hours of manual work.

Learning Objectives

This room covers Caido's core tools in depth:

  • Sitemap: Navigate complex application structures and visualise discovered domains and paths
  • HTTP History: Advanced filtering, analysis, and bulk operations beyond basic traffic viewing
  • Match & Replace: Automate traffic modifications with rules, regex, and workflows
  • Replay - Advanced Features: Organise sessions with Collections, track changes with Session History, and use Convert Workflows
  • Automate: Run payload-based attacks with multiple strategies, files, and preprocessors
  • WebSockets: Test real-time bidirectional communications

Prerequisites

Before starting this room, you should have:

  • Completed the Caido: The Basics room
  • Understanding of HTTP proxy fundamentals
  • Familiarity with HTTPQL query syntax
  • Basic knowledge of request interception and replay
  • Caido installed (or access to TryHackMe AttackBox)

NOTE
This room assumes you're comfortable with the concepts covered in the Caido: The Basics room. We won't revisit foundational topics like basic interception or simple HTTPQL queries. Instead, we'll build upon that knowledge with advanced techniques.

Hands-On Challenges

Unlike the Basics room, this room integrates practical challenges throughout. After learning each tool, you'll immediately apply your knowledge in targeted exercises that simulate real-world testing scenarios. This approach ensures you don't just understand the features - you master them.

TIP
Each section includes a challenge designed to test your understanding. Take your time with these - they're designed to reinforce what you've learned and prepare you for real penetration testing scenarios.

Lab Setup

You'll need the AttackBox and a vulnerable machine for the practical challenges in this room.

Click the Start AttackBox button to launch your testing environment. Then, click the Start Lab Machine button below to deploy the target machine.

Once both machines are running, add the target machine's IP to your hosts file so you can use the caido.local domain as shown in the screenshots.

NOTE
Wait until the machine starts and its IP address is visible (on the card above). Only then, copy the command below and run it in your AttackBox terminal, replacing MACHINE_IP with the actual IP if it is not already populated.

echo "MACHINE_IP    caido.local" | sudo tee -a /etc/hosts

NOTE
On the AttackBox, the pre-installed Caido instance may already be linked to another account. If you see a "You don't have access to this Caido instance" error, open the instance's Advanced Settings from the instance manager and enable Reset Credentials, then restart the instance and sign in with your own account.

TIP
If you are using Caido for the first time or testing without an account, you can click Continue as guest to skip authentication and start using Caido immediately. Guest mode has limited features but is perfect for trying out the tool.

You're ready to begin mastering Caido's core tools!

Answer the questions below

  1. Let's get started!

Task 2: Sitemap

Sitemap: Visualising Application Structure

This task assumes you have already created a Caido project and configured your browser (or system) to use Caido as a proxy. If you haven't, complete the Lab Setup in Task 1 and ensure the proxy is enabled so traffic is captured.

When testing web applications, understanding the overall structure is crucial. The Sitemap interface in Caido automatically builds a visual hierarchical tree of all discovered domains, subdomains, and paths as you proxy traffic. Think of it as an interactive map of the entire target application.

Unlike HTTP History (which shows traffic chronologically), Sitemap organises everything by structure - making it easy to see relationships between endpoints, discover hidden paths, and understand how the application is architected.

Before You Begin: Generate Traffic

To see endpoints in the Sitemap, you need traffic. Open Firefox (or your browser) in proxy mode so that it sends traffic through Caido, then navigate to http://caido.local. Click the Explore Tours button on the homepage to generate the traffic used throughout this room. The Sitemap will populate with the domains and paths discovered; the screenshots and exercises below assume you have done this.

Understanding the Sitemap Interface

The Sitemap interface is divided into three main areas:

  • Tree Panel (Left): Hierarchical view of domains and paths. Each node can be expanded with the ▶ button
  • Traffic Table (Top Right): Shows all requests associated with the selected node
  • Request/Response Panes (Bottom): Displays the full details of the selected request

As you navigate the tree, you'll notice visual indicators:

  • 🔒 Lock Icon: Indicates HTTPS connections
  • 📁 Folder Icons: Represent directories and paths
  • Three-dot menu (⋮): Quick actions for each node

Navigating the Sitemap

Exploring the Sitemap is straightforward. Here's how to navigate through a target's structure:

  • Step 1: Expand the root domain. Click the ▶ button next to a domain (e.g., *.caido.local) to reveal its structure
  • Step 2: Navigate through subdomains and paths. Continue expanding nodes to drill down into specific paths like /about, /api, or /admin
  • Step 3: Select a specific path. Click on any node to view all requests made to that endpoint
  • Step 4: Inspect request details. The traffic table populates with all associated requests. Select any request to view its full details in the panes below

Viewing Request Details

When you click on a node in the tree, the traffic table displays all requests made to that specific path. Each row shows:

  • ID: Request identifier
  • Host: Target server
  • Method: HTTP method (GET, POST, etc.)
  • Path: Requested resource
  • Status: Response status code
  • Extension: File type
  • Response Size: Size in bytes

Select any request to view the complete HTTP request and response in the panes below.

Searching the Sitemap

For large applications with hundreds of endpoints, manually navigating can be time-consuming. Use the search functionality to quickly locate specific domains or paths.

Type a Fully Qualified Domain Name (FQDN) or path in the Search domain... input field at the top of the tree panel. The Sitemap will filter to show only matching results.

Working with Requests

The Sitemap isn't just for viewing - you can take action on any request. Right-click on any request in the traffic table to access a context menu with options:

  • Send to Replay (Ctrl+R): Open the request in Replay for manual testing
  • Send to Automate (Ctrl+M): Launch automated attacks with payloads
  • Copy URL: Copy the request URL to clipboard
  • Save to file: Export the request for documentation
  • Other actions: Additional options depending on context

Practical Use Cases

The Sitemap excels in several testing scenarios:

  • Reconnaissance: Quickly discover all endpoints during initial mapping
  • API Testing: Visualise API structure and identify all available endpoints
  • Hidden Path Discovery: Find endpoints that aren't linked in the UI (like /admin, /debug, /backup)
  • Application Architecture: Understand how different parts of the application connect
  • Focused Testing: Target specific paths or subdomains for deeper analysis

TIP
Combine the Sitemap with Scopes to focus only on in-scope domains. Navigate to the Scopes interface to define your testing boundaries, then the Sitemap will automatically respect those limits. This keeps your testing organised and prevents accidentally targeting out-of-scope domains.

Now that you understand how to navigate application structures with the Sitemap, let's move on to HTTP History where we'll explore advanced traffic filtering and analysis techniques.

Answer the questions below

  1. What icon indicates that a connection is using HTTPS?

Task 3: HTTP History

HTTP History: Your Traffic Command Center

The HTTP History interface is where you'll spend most of your time analysing web traffic. While we covered the basics in the previous room, this section dives deep into the advanced features that make HTTP History a powerful tool for security testing - including bulk operations, view modes, exporting data, and advanced filtering techniques.

Understanding the Interface

The HTTP History interface is divided into several key areas that work together to help you analyse traffic efficiently:

  • Step 1: Scope Selector. Filter traffic to show only in-scope domains. Select a predefined scope or leave as "Unset Scope" to see all traffic
  • Step 2: Export Button. Export traffic data for documentation or external analysis
  • Step 3: HTTPQL Query Bar. Write powerful queries to filter traffic precisely
  • Step 4: Advanced Options. Access additional filtering options including status code filters, source filters, and custom presets
  • Step 5: Traffic Table. Displays all captured requests with sortable columns (ID, Host, Method, Path, Status, etc.)
  • Step 6: Request Pane. Shows the full HTTP request for the selected row
  • Step 7: Response Pane. Shows the server's response including headers and body

Traffic Table Columns

The traffic table displays key information about each request. Understanding these columns helps you quickly identify interesting traffic:

Column Description
ID Unique identifier for each request
Status HTTP status code of the response (200, 404, 500, etc.)
Method HTTP method used (GET, POST, PUT, DELETE, etc.)
Host Target server hostname
Path Requested resource path
Query Query string parameters
Extension File extension of the requested resource
State Indicates whether the request was modified (shows "Edited" if changed)
Response Size Size of the response body in bytes
Response Time (ms) How long the server took to respond
Request Sent At Timestamp when the request was sent

TIP
Click on any column header to sort the traffic table by that property. Click again to reverse the sort order. This is useful for finding the largest responses or slowest requests, and for grouping by status codes.

Customising Table Columns

Not all columns are visible by default, and you may not need all of them. Customise which columns appear by clicking the gear icon (⚙️) in the lower right-hand corner of the traffic table.

Check or uncheck columns to show or hide them. This helps reduce clutter and focus on the data that matters for your current testing scenario.

Request and Response View Modes

When viewing request and response content, Caido offers multiple display modes to help you analyse data effectively.

Pretty vs Raw Mode

Click the Pretty and Raw buttons in the request or response pane to toggle between the two modes:

  • Pretty Mode: Formats JSON, XML, and HTML with proper indentation and syntax highlighting. Makes structured data easy to read
  • Raw Mode: Shows the exact data as sent/received, including all whitespace and formatting. Essential when creating Match & Replace rules or debugging encoding issues

Preview Mode (Response Only)

For responses, click the Preview tab in the response pane to render the page visually. This is useful for seeing how the response would appear in a browser without actually navigating to it.

NOTE
In the AttackBox, clicking Preview may prompt you to install a rendering engine first. After installation, the preview may show a blank or simplified view depending on the response content.

Viewing Modified Traffic

When traffic has been modified (through Intercept or Match & Replace), it's marked with "Edited" in the State column. You can view both the original and modified versions to compare what changed.

Click the dropdown menu above the request pane that shows "Original Request" or "Edited Request" to switch between views:

  • Original Request: The request as it was originally sent by the browser
  • Edited Request: The modified version that was actually sent to the server
  • Original Response: The response as originally received from the server
  • Edited Response: The modified response (if Match & Replace rules were applied)

Working with Requests

HTTP History isn't just for viewing - you can take action on any request. Right-click on a request in the traffic table or within the request pane to access the context menu:

  • Copy: Copy the raw request to clipboard
  • Copy as cURL: Copy the request as a cURL command for use in a terminal
  • Copy URL: Copy just the URL
  • Save to file: Export the request to a file
  • Send to Replay (Ctrl+R): Open in Replay for manual testing
  • Send to Automate (Ctrl+M): Launch automated attacks
  • Send to Findings: Save as a finding for documentation
  • Replay in browser: Re-execute the request in your browser
  • View response in browser: Render the response in your browser
  • Add in Scope / Add out of Scope: Quickly add the domain to scope definitions
  • Convert (Preview): Decode/encode the request body
  • Run workflow: Execute a custom workflow on the request
  • Plugins: Access plugin-specific actions

Exporting Traffic Data

Caido allows you to export traffic data for documentation, reporting, or external analysis. Click the Export button above the traffic table to access export options:

  • Export all: Export the entire HTTP History
  • Export current rows: Export only the currently visible/filtered rows

Exported data can be saved in various formats and imported into other tools for further analysis.

Advanced Filtering Options

Click the Advanced button to access additional filtering capabilities beyond HTTPQL queries:

Status Code Filters

Quickly filter by response status code categories:

  • 1XX: Informational responses
  • 2XX: Successful responses
  • 3XX: Redirects
  • 4XX: Client errors
  • 5XX: Server errors
  • Other: Non-standard status codes

Custom Presets

Enable or disable your saved filter presets (like "No Images", "No Styling", or custom filters you created). Multiple presets can be active simultaneously using AND logic.

Active filters are displayed below the traffic table so you always know what's currently applied.

NOTE
Traffic generated by Caido features like Replay, Automate, and Workflows doesn't appear in HTTP History. To view traffic from these sources, use the Search interface instead.

Keyboard Shortcuts

Speed up your workflow with these essential shortcuts:

Shortcut Action
Ctrl+R / Cmd+R Send selected request to Replay
Ctrl+M / Cmd+M Send selected request to Automate
Ctrl+K / Cmd+K Open Command Palette

HTTP History vs Search

HTTP History and Search are similar interfaces but serve different purposes:

HTTP History Search
Shows only proxied traffic Shows ALL traffic (including Replay, Automate, Workflows)
Real-time updates as traffic flows Comprehensive search across all sources
Best for live testing Best for finding specific requests from any source

Understanding when to use each interface will make your testing workflow more efficient.

Challenge

Developers often leave behind more than they intend. Debug information, internal references, and diagnostic data sometimes slip through to production.

If you clicked Explore Tours in the previous task, the needed traffic is already in your HTTP History. Look at the /api/tours requests that were captured. Sometimes the most interesting data hides in plain sight, you just need to know where to look.

Use your HTTP History skills to uncover the hidden flag.

Answer the questions below

  1. What is displayed in the "State" column when a request has been modified?

  2. What is the flag?

Task 4: Match & Replace

Match & Replace: Automated Traffic Modification

Match & Replace is one of Caido's most powerful features for security testing. It allows you to create rules that automatically modify requests and responses as they pass through the proxy - without any manual intervention. This is incredibly useful for testing how applications handle unexpected input, bypassing client-side restrictions, or simulating different user roles.

Understanding the Interface

The Match & Replace interface is divided into several key areas. Let's walk through each component:

  • 1 - New Rule Button. Click to create a new Match & Replace rule. The dropdown arrow provides additional options
  • 2 - Section Dropdown. Select which part of the request or response to target (headers, body, path, etc.)
  • 3 - Matcher/Replacer Area. Configure what to look for (Matcher) and what to replace it with (Replacer)
  • 4 - Matcher Input. Enter the pattern to match - can be a string, regex, or full section replacement
  • 5 - Replacer Input. Enter the replacement value
  • 6 - Condition Field. Use HTTPQL to limit when this rule applies (e.g., only for specific hosts)
  • 7 - Update Button. Save changes to an existing rule
  • 8 - Test Button. Test your rule against sample data before applying it
  • 9 - Before Pane. Shows what the traffic looks like before the rule is applied
  • 10 - After Pane. Shows the result after the rule is applied
  • 11 - Active Rules. Lists all enabled rules that are currently being applied to traffic
  • 12 - Rules Collection. Organise your rules into collections for better management

Sections: What Can You Modify?

The Section dropdown determines which part of the HTTP traffic your rule will target. Caido provides extensive options for both requests and responses.

Request Sections

Section Description
Request Raw The entire raw request including headers and body
Request Path The URL path (e.g., /api/users)
Request Method The HTTP method (GET, POST, PUT, DELETE, etc.)
Request Query Query string parameters (e.g., ?id=123&sort=asc)
Request First Line The first line of the request (method + path + HTTP version)
Request Header HTTP headers (supports adding, removing, or modifying)
Request Body The body data of the request
Request SNI Server Name Indication for TLS connections

Response Sections

Section Description
Response Raw The entire raw response including headers and body
Response First Line The first line (HTTP version + status code + status text)
Response Status Code The HTTP status code (200, 404, 500, etc.)
Response Header Response headers (supports adding, removing, or modifying)
Response Body The body data of the response

Matchers: How to Find What You're Looking For

The Matcher determines how Caido identifies the content to replace. There are three matcher types:

Matcher Description
String Matches an exact string value. Simple and fast - use this when you know exactly what you're looking for
Regex Matches using Rust-flavoured regular expressions. Powerful for pattern matching and capturing groups
Full Replaces the entire section. Useful when you want to completely replace a header, body, or other section

Using Regular Expressions

Regex matching is incredibly powerful for complex patterns. Caido uses Rust-flavoured regular expressions and supports capture groups.

Capture groups are expressions enclosed in parentheses that can be referenced in the replacement using $1, $2, etc. For example:

  • Matcher: "role": "([^"]+)"
  • Replacer: "role": "admin"

This would match any role value and replace it with "admin".

NOTE
Caido does not currently support look-around and backreference regular expressions. To test your regex patterns before using them, visit regex101.com and select Rust syntax.

Replacers: What to Put in Its Place

The Replacer determines what value will replace the matched content:

Replacer Description
Term Replace with a static string value. Supports capture group references ($1, $2, etc.)
Workflow Apply a workflow to transform the matched content (e.g., Base64 encode, URL encode)

Header-Specific Actions

When working with Request Header or Response Header sections, additional actions become available:

Action Description
Update Raw Modify headers as a whole using pattern matching
Update Value Match a header by name and modify only its value
Add Insert a new header key-value pair
Remove Remove a header by its key name

Query Parameter Actions

Similarly, when targeting Request Query, you get specialised actions:

Action Description
Update Raw Modify the query string as a whole
Update Param Match a parameter by name and modify its value
Add Param Append an additional query parameter
Remove Param Remove a query parameter by name

Conditions: Targeting Specific Traffic

The Condition field accepts HTTPQL queries to control when a rule applies. This is powerful for targeting specific hosts, paths, or request characteristics.

Examples:

  • req.host.cont:"api.example.com" - Only apply to requests to api.example.com
  • req.path.cont:"/admin" - Only apply to requests containing /admin in the path
  • req.method.eq:"POST" - Only apply to POST requests

TIP
Leaving the Condition field empty means the rule will apply to ALL matching traffic. Be careful with broad rules!

Creating Your First Rule

Let's walk through creating a simple rule that changes a user's role from "basic" to "admin" in response bodies:

TIP
Before creating the rule, edit the Before pane's sample data so you can see the replacement in action. Change the default key to role and value to basic so the sample reads {"role": "basic"}. When you click Test, the After pane will show {"role": "admin"}, confirming your rule works.

  • Step 1: Click the + New Rule button
  • Step 2: Give your rule a descriptive name (click the pencil icon next to "New Rule")
  • Step 3: Select Response Body from the Section dropdown
  • Step 4: Set Matcher to String
  • Step 5: Enter "role": "basic" in the Matcher input
  • Step 6: Set Replacer to Term
  • Step 7: Enter "role": "admin" in the Replacer input
  • Step 8: Click Test to verify your rule works correctly
  • Step 9: Click Update to save the rule
  • Step 10: Enable the rule by checking its checkbox in the Rules list

Testing Rules

Before enabling a rule, always test it! The Test feature shows you exactly what your rule will do:

  • Before Pane: Shows sample traffic before the rule is applied
  • After Pane: Shows the result after the rule is applied

This helps you catch errors in your patterns before they affect real traffic.

Rule Order and Active Rules

Rules in the Active Rules section are applied in order from top to bottom. This matters when multiple rules might affect the same traffic.

  • Drag and drop rules to reorder them
  • Enable/disable rules using the checkbox
  • Rules only apply when they're in the Active Rules list AND enabled

NOTE
If your Match & Replace rule isn't working, ensure you're looking at the Raw (un-prettified) version of the request/response body by pressing the Raw button. The Pretty format adds spacing that doesn't exist in the actual data.

Traffic Sources

By default, rules apply to traffic from the Intercept source. You can configure which traffic sources a rule applies to in the Sources section of the rule editor.

Challenge

The Velora Travel application has premium tour content that's restricted to certain users. Your goal is to access that premium content and retrieve the hidden flag.

What to do: Log in to Velora Travel and click Explore Tours. Notice that some tour requests return a 403 status with "Premium content requires subscription". The application checks for a custom request header called X-Premium-Access to grant premium access. Create a Match & Replace rule that adds this header with the value true to all outgoing requests (use the Request Header section with Full matcher). Once the rule is active, navigate to the tours section again. The premium tours will now load, and the flag will appear alongside them.

Use Match & Replace to unlock the premium content and retrieve the hidden flag.

Answer the questions below

  1. Which Matcher type would you use to replace the ENTIRE content of a section?

  2. What Replacer type allows you to apply encoding transformations like Base64?

  3. What is the flag?

Task 5: Replay - Advanced Features

Replay - Advanced Features

In the Caido: The Basics room, you learned how to send requests to Replay and make simple modifications. Now it's time to unlock Replay's full potential. This task covers the advanced features that transform Replay from a simple request editor into a powerful testing workbench - including session history, collections, and convert workflows.

Understanding the Replay Interface

Let's revisit the Replay interface with a focus on the advanced features:

  • 1 - Session Tabs. Each tab represents a request "session" - a series of related request modifications and their history
  • 2 - Collections Panel. Organise your sessions into logical groups (by project, feature, or environment)
  • 3 - Search. Quickly find sessions within your collections
  • 4 - Active Session Tabs. Currently open sessions displayed as tabs for quick switching
  • 5 - Send Button. Execute the current request and record it in session history
  • 6 - Request Editor. The URL bar and request pane where you craft and modify your requests
  • 7 - Placeholder Controls. The Clear, -, and + buttons for managing dynamic value placeholders
  • 8 - Pretty/Raw Toggle. Switch between formatted and raw request view
  • 9 - Context Menu. Right-click options for copying, converting, and sending requests elsewhere
  • 10 - Options. Access additional Replay settings and configurations

Organising with Collections

As your testing progresses, you'll accumulate dozens or even hundreds of request sessions. Without organisation, finding that one important request becomes a nightmare. Collections solve this problem by letting you group related sessions into folders.

What Are Collections?

Collections are folders that group related sessions together. Think of them like folders on your computer - they help you categorise and find things quickly. You might organise by:

  • Project: Group all sessions for a specific target application
  • Feature: Group sessions testing a particular functionality (authentication, API endpoints, file uploads)
  • Environment: Separate development, staging, and production requests
  • Vulnerability Type: Group sessions by what you're testing (SQLi, XSS, IDOR, etc.)

Creating and Managing Collections

To create a new collection, you can use the dropdown arrow next to the + New Session button and select "New collection", or right-click within the Collections panel.

Working with Session Tabs

Right-clicking on a session tab reveals a context menu with powerful organisation options:

Option Description
Rename Give the session a descriptive name instead of the default number
Move Transfer the session to a different collection (New collection, Default Collection, or custom collections)
Close Close just this session tab
Close Others Close all tabs except the current one
Close to the Left Close all tabs to the left of the current tab
Close to the Right Close all tabs to the right of the current tab
Close All Close every open session tab

You can also drag and drop sessions directly into collection folders by clicking, holding, and dragging a session tab into the desired collection.

TIP
Give your sessions descriptive names! Instead of "1", "2", "3", rename them to something meaningful like "Login POST", "Admin API", or "IDOR Test". This makes it much easier to find requests later when you have dozens of sessions.

Session History

One of Replay's most powerful features is session history. Every time you send a request within a session, Caido records both the request and its response. This creates a complete timeline of your testing activities that you can navigate through, compare, and analyse.

Understanding the History Counter

At the bottom of the request pane, you'll see a counter displayed as X/Y where:

  • X = The currently displayed request number
  • Y = Total number of requests in this session's history

For example, "3/14" means you're viewing the 3rd request out of 14 total requests sent in this session.

Navigating Through History

Use the navigation arrows at the top of the Replay interface to move through your session history:

  • Left Arrow (←): Go to the previous request in history
  • Right Arrow (→): Go to the next request in history

For quick navigation across many requests, click the History button to open a dropdown showing all requests in the session.

History Dropdown Details

The History dropdown displays a table with detailed information about each request:

Column Description
Method The HTTP method used (GET, POST, PUT, DELETE, etc.)
Host The target server hostname
Path The requested resource path
Status The HTTP response status code
Timestamp When the request was sent

Use the search bar within the History dropdown to quickly filter and find specific requests by any of these attributes.

NOTE
Session history is invaluable for comparing how different modifications affect responses. You can quickly flip between requests to see exactly what changed - perfect for testing parameter tampering, authentication bypasses, and access control issues.

Convert Workflows in Replay

Convert Workflows transform values in your requests. They're accessible through both placeholders and the right-click context menu.

Toggle GET/POST

This is one of the most useful built-in features. Right-click within a request and select Toggle GET/POST to instantly convert:

  • POST → GET: Body parameters become query string parameters
  • GET → POST: Query string parameters become body data

This is invaluable for testing how applications handle the same data sent via different HTTP methods - a common source of security vulnerabilities.

Context Menu Actions

Right-click anywhere in the request pane to access these options:

Action Description
Copy Copy the raw request to clipboard
Copy as cURL Copy as a cURL command for terminal use
Copy URL Copy just the URL
Paste from file Import a request from a file
Paste Paste clipboard content into the request
Duplicate Create a copy of the current session
Send to Automate Transfer the request to Automate for bulk testing
Send to Findings Save as a finding for documentation
Replay in browser Execute the request in your browser
View response in browser Render the response visually
Add in Scope Add the host to your in-scope list
Add out of Scope Add the host to your out-of-scope list
Convert (Preview) Preview encoding/decoding transformations
Run workflow Execute a custom workflow on the request
Assistant Get AI-powered analysis of the request
Set Request Set current request as the session's base
Toggle GET/POST Convert between GET and POST methods
Plugins Access plugin-specific actions

Challenge

In the Velora Travel application, users can view their booking details. Access controls should ensure users only see their own bookings - but what happens when you change the booking ID in a request?

What to do: Log in to Velora Travel and open a page that loads your bookings (or a single booking). In HTTP History, find the request that fetches booking details (e.g., by booking ID). Send it to Replay, then change the booking ID in the URL or body to another ID (e.g., 1, 2, 3). Send the request and check the response; one of the booking responses contains the hidden flag.

Use Replay to explore the booking system and find the hidden flag.

Answer the questions below

  1. What feature allows you to group related Replay sessions together?

  2. What is the flag?

Task 6: WebSockets

WebSockets: Real-Time Communication Analysis

WebSockets represent a different paradigm from traditional HTTP communication. While HTTP follows a request-response model where each interaction is independent, WebSockets establish a persistent, bidirectional connection that allows both the client and server to send messages at any time. This makes WebSockets ideal for real-time applications like chat systems, live notifications, collaborative editing, and financial data feeds.

How WebSockets Differ from HTTP

Before diving into Caido's WebSocket features, it's important to understand the fundamental differences between WebSocket and HTTP communication:

Aspect HTTP WebSocket
Connection Short-lived, closes after each request/response Persistent, stays open until explicitly closed
Direction Client initiates, server responds Bidirectional - both can send at any time
Protocol HTTP/HTTPS (http:// or https://) WS/WSS (ws:// or wss://)
Overhead Full headers with every request Minimal framing after handshake
Use Cases Traditional web pages, APIs, file transfers Real-time chat, live updates, gaming, trading platforms

The WebSocket Handshake

WebSocket connections begin with an HTTP upgrade request. The client sends a regular HTTP request with special headers asking the server to "upgrade" the connection to the WebSocket protocol:

GET /chat HTTP/1.1
Host: example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13
Cookie: session=abc123

If the server accepts, it responds with a 101 Switching Protocols status:

HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=

After this handshake, the connection switches from HTTP to the WebSocket protocol, and both parties can freely exchange messages.

NOTE
The initial WebSocket handshake appears in HTTP History as a regular request. Once the connection is established, all subsequent WebSocket messages appear in the WS History interface instead.

The WS History Interface

The WS History interface in Caido provides a dedicated view for analysing WebSocket traffic. Unlike HTTP History, which shows individual request-response pairs, WS History organises traffic by streams (connections) and their associated messages.

To see WebSocket traffic: Use the Velora Travel site with your browser proxied through Caido. Open the support chat (or the feature that uses real-time chat) on the site. Once the chat is active, WebSocket connections will appear in the WS History streams panel.

The interface is divided into three main areas:

Streams Panel

The left panel displays all WebSocket streams (connections) that have been proxied through Caido. Each stream represents a unique WebSocket connection to a server.

Column Description
ID Unique identifier for the WebSocket stream
Destination The hostname of the WebSocket server
Path The URL path used for the WebSocket connection (e.g., /cable, /ws, /socket)
Created At Timestamp when the connection was established

Click on any stream in this panel to view its associated messages in the Stream Messages panel.

Stream Messages Panel

The right panel shows all messages exchanged within the selected stream. This is where you can analyse the actual data being sent between client and server.

Column Description
ID Unique identifier for the message within this stream
Direction Shows whether the message was sent → To Server or received ← To Client
Length Size of the message in bytes
Created At Timestamp when the message was sent/received

Message Pane

The bottom pane displays the full content of the selected message. WebSocket messages often contain JSON data, making it easy to read and analyse the communication structure.

Use the Original dropdown to switch between viewing the original message and any edited versions (if the message was modified during interception).

Filtering WebSocket Traffic

Like HTTP History, WS History supports filtering to help you focus on relevant traffic:

  • Scope Selector: Use the scope dropdown in the top-left corner to filter streams by in-scope domains
  • Column Sorting: Click on any column header to sort streams or messages by that property

Intercepting WebSocket Messages

One of Caido's powerful features is the ability to intercept and modify WebSocket messages in real time. This allows you to manipulate the communication between client and server during your testing.

To enable WebSocket interception:

  • Step 1: Navigate to the Intercept interface
  • Step 2: In the "Choose what to intercept" section, check the Websockets checkbox
  • Step 3: Click the Forwarding button to start queuing WebSocket messages
  • Step 4: When a WebSocket message is captured, it will appear in the queue table
  • Step 5: Select the message to view and edit its contents in the Message pane
  • Step 6: Make your modifications and click Forward to send the modified message

The WebSocket intercept queue displays the following columns:

Column Description
ID Unique identifier for the intercepted message
Direction Whether the message is going to the server or client
Format The format of the message (text, binary)
Length Size of the message in bytes
Sent At Timestamp of the message

TIP
You can intercept WebSocket messages independently of HTTP requests and responses. This means you can enable WebSocket interception while letting regular HTTP traffic flow through uninterrupted, or vice versa.

Modifying WebSocket Messages

Once you've intercepted a WebSocket message, you can modify its contents before forwarding it to its destination. This is useful for testing how the application handles unexpected or manipulated data.

To modify an intercepted message:

  • Step 1: Select the message from the intercept queue
  • Step 2: Click inside the Message pane to edit the content
  • Step 3: Make your changes (modify JSON values, change parameters, etc.)
  • Step 4: Click Forward to send the modified message

Modified messages will be marked as "Edited", and you can view both the original and edited versions using the dropdown in WS History.

NOTE
WebSocket messages often contain JSON-formatted data. Understanding the message structure is key to effective testing. Look for user IDs, action types, and data fields that you might want to manipulate.
COMING SOON
More filtering options for WebSocket messages are coming soon. Stay tuned for enhanced search and filter capabilities in the WS History interface.

Challenge

The Velora Travel support chat uses WebSockets for real-time communication. The server trusts certain information in the messages it receives - including who is sending the message.

What to do: Open the support chat on Velora Travel (with proxy enabled) so WebSocket traffic appears in WS History. Enable WebSocket interception in Caido. When you send a chat message, intercept the outgoing WebSocket message and change the userType field in the JSON to something more privileged (e.g., from "customer" to "admin" or "agent"). Forward the modified message. The server's response may reveal the flag when it thinks a privileged user is sending the message.

Use your WebSocket interception skills to retrieve the hidden flag.

Answer the questions below

  1. What HTTP status code indicates a successful WebSocket upgrade?

  2. What is the flag?

Task 7: Automate

Automate: Bulk Request Testing

Automate is Caido's powerhouse for large-scale security testing. While Replay lets you manually modify and resend individual requests, Automate allows you to send hundreds or thousands of requests programmatically, with systematic modifications. This is essential for brute-forcing, fuzzing, parameter enumeration, and discovering vulnerabilities that only appear under specific conditions.

To follow the screenshots in this task: Use the Velora Travel application at http://caido.local with your browser proxied through Caido. The interface and examples below use the promo code validation endpoint from Velora Travel's API.

When to Use Automate

Automate excels at tasks that would be tedious or impossible to do manually:

  • Credential Brute-Forcing: Test username/password combinations from wordlists
  • Fuzzing: Send malicious payloads to find injection vulnerabilities (SQLi, XSS, etc.)
  • Parameter Enumeration: Discover hidden parameters or valid IDs
  • Directory/File Discovery: Find hidden endpoints or files
  • Race Conditions: Send identical requests rapidly to test for timing vulnerabilities

Understanding the Interface

The Automate interface consists of several key areas that work together to configure and execute your attack campaigns.

Session Management

  • + New Session: Create a new Automate session from scratch
  • Session Tabs: Each tab represents an Automate session - configuration tabs are paired with their results tabs
  • Ongoing Tasks: View and manage currently running Automate campaigns

Request Configuration

  • URL Bar: The target URL for your requests
  • Strategy Dropdown: Select how placeholders are populated (Sequential, All, Parallel, Matrix)
  • Run Button: Execute the Automate campaign
  • Request Pane: View and edit the raw request with placeholders highlighted

Placeholder Controls

  • Clear: Remove all placeholders from the request
  • - (Minus): Remove the selected placeholder
  • + (Plus): Add the highlighted text as a new placeholder

Configuration Tabs

  • Payload: Configure payload types and values for each placeholder
  • Preprocessors: Transform payloads before sending (encoding, prefixes, etc.)
  • Settings: Control request behaviour (delays, workers, retries, redirects)

Sending Requests to Automate

You can send requests to Automate from multiple places in Caido:

  • From HTTP History: Right-click a request → Send to Automate (or Ctrl+M)
  • From Replay: Right-click in the request pane → Send to Automate (or Ctrl+M)
  • From Sitemap: Right-click a request → Send to Automate
  • New Session: Click + New Session to create a request from scratch

Creating Placeholders

Placeholders mark the parts of your request that will be replaced with payload values. To create a placeholder:

  • Step 1: In the Request pane, click and drag to highlight the value you want to replace
  • Step 2: Click the + button (or use the + Add Placeholder button)
  • The highlighted text becomes a placeholder, shown with a distinct background colour

You can create multiple placeholders in a single request. Each placeholder is assigned a number (Payload #1, Payload #2, etc.) and can have its own payload configuration.

Payload Types

The Payload tab lets you configure what values will replace each placeholder. Click on a placeholder's row to configure its payload.

Hosted File

Use a wordlist file that you've previously uploaded to your Caido instance. This is the most common option for large-scale testing.

  • Select Hosted File from the Type dropdown
  • Choose a file from the Selected file dropdown
  • Each line in the file becomes a payload value

TIP
Upload wordlists in the Files interface (under Workspace in the sidebar) before starting your Automate session. Popular wordlists like SecLists are perfect for directory brute-forcing, credential testing, and fuzzing.

Simple List

Enter payload values directly in Caido. Perfect for small, custom lists.

  • Select Simple List from the Type dropdown
  • Type each payload on a new line in the input field
  • Optionally, click Load from file... to import from your local system

WARNING
Do not use Simple List with large wordlists. For better performance with large files, upload your wordlists using the Files interface and use Hosted File payloads instead.

Numbers

Generate sequential numerical payloads. Useful for IDOR testing or enumerating IDs.

  • Select Numbers from the Type dropdown
  • Configure:
    • Start: The first number (e.g., 0)
    • End: The last number (e.g., 100)
    • Step: Increment between numbers (default: 1)
    • Minimum digits (zero padded): Pad numbers with leading zeros (e.g., 001, 002)

Null

Send the same request multiple times without modifying the placeholder value. Useful for:

  • Testing race conditions
  • Stress testing
  • Checking for inconsistent responses
  • Select Null from the Type dropdown
  • Specify the Number of payloads to generate

The Files Interface

Before using Hosted File payloads, you need to upload your wordlists. Access the Files interface from the Workspace section in the sidebar.

Uploading Wordlists

  • Step 1: Navigate to Files in the Workspace section
  • Step 2: Click the Upload button
  • Step 3: Select your wordlist file(s)
  • Step 4: Wait for the Status to show "Ready"

The Files interface displays:

Column Description
Status Upload status ("Ready" when available for use)
Name Filename of the wordlist
Path Storage location on the Caido instance
Size File size
Created At Upload timestamp
Updated At Last modification timestamp

Attack Strategies

When you have multiple placeholders, the Strategy determines how payload values are combined. Select a strategy from the dropdown next to the URL bar.

Single Payload Set Strategies

These strategies use one payload set across all placeholders:

Sequential (Sniper)

Replaces one placeholder at a time while keeping others at their original values. If you have 2 placeholders and 3 payloads, you get 6 requests total.

Example with placeholders for username and password, payload list: [admin, root, test]

Request Result
1 username=admin&password=originalValue
2 username=originalValue&password=admin
3 username=root&password=originalValue
4 username=originalValue&password=root
5 username=test&password=originalValue
6 username=originalValue&password=test

All (Battering Ram)

Replaces ALL placeholders with the same payload value simultaneously.

Example with same setup:

Request Result
1 username=admin&password=admin
2 username=root&password=root
3 username=test&password=test

Multi-Payload Set Strategies

These strategies allow different payload sets for each placeholder:

Parallel (Pitchfork)

Combines payloads from different sets in parallel (1st from each, 2nd from each, etc.). All payload sets must have the same number of elements.

Example with usernames: [admin, root, test] and passwords: [pass1, pass2, pass3]

Request Result
1 username=admin&password=pass1
2 username=root&password=pass2
3 username=test&password=pass3

Matrix (Cluster Bomb)

Tests ALL combinations of payloads across sets. This creates the most requests but provides the most thorough coverage.

Example with same setup:

Request Result
1 username=admin&password=pass1
2 username=admin&password=pass2
3 username=admin&password=pass3
4 username=root&password=pass1
5 username=root&password=pass2
6 username=root&password=pass3
7 username=test&password=pass1
8 username=test&password=pass2
9 username=test&password=pass3

NOTE
Be careful with the Matrix strategy! With large payload sets, the number of requests grows exponentially. A Matrix attack with two 1000-element lists creates 1,000,000 requests!

Preprocessors

Preprocessors transform payload values before they're inserted into requests. Access them from the Preprocessors tab.

Preprocessor Types

Type Description
Workflow Apply a Convert Workflow to transform payloads (e.g., Base64 encode, hash)
URL Encode URL-encode special characters in payloads. Configure which characters to encode via the Charset field
Prefix Add a string before each payload value
Suffix Add a string after each payload value

Adding a Preprocessor

  • Step 1: Click on a payload in the Payload # dropdown (if you have multiple placeholders)
  • Step 2: Select the preprocessor type from the Workflow dropdown
  • Step 3: Configure the preprocessor (select workflow, enter prefix/suffix, etc.)
  • Step 4: Click Add to apply

Ordering Preprocessors

Multiple preprocessors are applied in order from top to bottom. Use the up/down arrows to reorder them in the Active preprocessors list.

TIP
Order matters! If you're testing SQL injection with URL encoding, apply URL Encode after any payload transformations to ensure special characters are properly encoded.

Settings

The Settings tab provides fine-grained control over how Automate sends requests.

Normalization

Setting Description
Close Connection Close the connection after each request (prevents connection reuse)
Update Content-Length Automatically recalculate and update the Content-Length header based on payload size

Redirections

Control how Automate handles HTTP redirects (3xx responses):

Option Description
Always Follow all redirects
In-scope Only follow redirects to in-scope domains
Never Never follow redirects (capture the redirect response)
Same-site Only follow redirects to the same site
Max redirects Maximum number of redirects to follow (prevents infinite loops)

Concurrency

These settings help you avoid triggering rate-limiting or overwhelming the target server:

Setting Description
Delay (ms) between requests Pause between each request (in milliseconds). Increase to avoid rate-limiting
# of workers Number of parallel request threads. Higher = faster but more aggressive

Error Handling

Setting Description
Delay (ms) before retry Wait time before retrying a failed request
Max retries Maximum retry attempts for failed requests (set to 1+ if requests fail unexpectedly)

NOTE
If Automate requests aren't receiving responses, try setting Max retries to 1 or higher. Network issues or server timeouts can cause requests to fail silently.

Running and Analysing Results

Once your campaign is configured, click the Run button to start.

Results Tab

A new tab appears next to your configuration tab, displaying a traffic table with all sent requests. The table shows:

  • ID: Request sequence number
  • Payload: The payload value used
  • Status: HTTP response status code
  • Length: Response size
  • Time: Response time

Identifying Interesting Results

Look for anomalies in the results that might indicate vulnerabilities:

  • Different status codes: A 200 among 404s, or a 500 among 200s
  • Different response sizes: Significantly larger or smaller responses
  • Different response times: Much slower responses might indicate SQL injection
  • Redirect responses: 302/301 might indicate successful authentication

Use HTTPQL filtering in the results tab to quickly find interesting responses.

Challenge

The Velora Travel application has a promo code system. A secret promo code unlocks a special reward (the flag).

What to do: Use Replay to send a POST request to http://caido.local/api/promo/validate with a JSON body like {"code": "1234"} and the Content-Type: application/json header (you also need your Authorization: Bearer <token> header from your logged-in session). Once you get a response, send that request to Automate. Add a placeholder where the promo code value goes, then configure a Numbers payload (the secret code is a 4-digit number) and run the campaign. One of the responses will contain the flag when the correct code is tried.

Use Automate to discover the hidden promo code and retrieve the flag.

Answer the questions below

  1. Which attack strategy tests ALL combinations of payloads across different sets?

  2. What payload type allows you to use a wordlist file uploaded to your Caido instance?

  3. What is the flag?

Task 8: Conclusion

Congratulations!

You've successfully completed the Caido: Core Tools room! You now have hands-on experience with Caido's most powerful features for web security testing.

What You've Learned

Throughout this room, you've mastered the following Caido features:

  • Sitemap: Visualising application structure with the hierarchical tree view, understanding node types, and navigating between domains and paths
  • HTTP History: Analysing traffic with advanced filtering, using Pretty and Raw view modes, working with modified requests, and exporting data
  • Match & Replace: Creating rules to automatically modify requests and responses, using Regex patterns with capture groups, and applying conditions with HTTPQL
  • Replay - Advanced Features: Organising sessions with Collections, tracking changes with Session History, and using Convert Workflows for dynamic testing
  • Automate: Launching automated attacks with different payload types, understanding attack strategies (Sequential, All, Parallel, Matrix), configuring Preprocessors, and fine-tuning settings
  • WebSockets: Monitoring real-time communication with WS History, understanding Streams and Stream Messages, and intercepting WebSocket traffic

What's Next?

Now that you've mastered Caido's core tools, here are some ways to continue your learning journey:

  • Practice: Apply these skills on platforms like TryHackMe
  • Explore Workflows: Caido's Workflow feature allows you to create custom automation scripts for repetitive tasks
  • Try Plugins: Extend Caido's functionality with community plugins from the plugin store
  • Join the Community: Connect with other Caido users on Discord to share tips and learn new techniques
  • Read the Documentation: Dive deeper into specific features at docs.caido.io

Thank you for completing this room. Happy hacking!

Answer the questions below

  1. I have completed the Caido: Core Tools room!