We use cookies to ensure you get the best user experience. For more information see our cookie policy.
Caido: The Basics
An introduction to using Caido to inspect and test web applications.
Task 1: Introduction
Welcome to Caido Basics!
You're about to learn one of the most powerful tools in modern web security testing. Caido is a lightweight, fast HTTP proxy built by hackers for hackers - and in this room, you'll master its fundamentals.
This room will take you from zero to confident with Caido. Here's what you'll learn:
What Caido is and why security professionals are switching to it
How to install and set up your first Caido project
Configuring HTTPS traffic interception with certificates
Navigating the Caido interface like a pro
Using HTTPQL to filter and query HTTP traffic
Setting up scopes and filters for focused testing
Intercepting and modifying requests in real time
Replaying requests to test vulnerabilities
Putting it all together in a practical challenge
By the end of this room, you'll be ready to use Caido for bug bounty hunting, penetration testing, and web application security assessments.
This room builds a solid foundation. You'll get hands-on experience with each feature, and we'll finish with a practical challenge where you'll capture your first flag using Caido.
If you're new to HTTP proxies, don't worry. We'll explain everything step by step. If you're coming from other proxy tools, you'll appreciate Caido's speed and modern interface.
You will need the AttackBox and a vulnerable machine provided in this room. Please click the Start AttackBox button to launch your AttackBox environment.
Let's get started!
Answer the questions below
I am ready to start the room.
Task 2: What is Caido?
Caido is a lightweight web security auditing toolkit designed specifically for modern security testing. At its core, it's an HTTP proxy that sits between your browser and web servers, giving you complete control over web traffic.
Think of Caido as your window into how web applications communicate. Every request your browser sends and every response it receives passes through Caido first. You can view, intercept, modify, and replay this traffic, making it essential for finding vulnerabilities in web applications.
Why Caido?
Caido was built by hackers for hackers with a focus on speed and efficiency. Here's what sets it apart:
Feature
What It Means for You
Built with Rust
Lightning-fast performance with minimal memory usage. No Java overhead means your testing flows smoothly.
HTTPQL
Write powerful queries like req.method.eq:"POST" AND resp.code.eq:200 to filter traffic precisely.
Project Switching
Change between testing targets instantly without restarting. Perfect for multiple bug bounty programs.
Modern Interface
Clean, intuitive design. Find what you need without hunting through endless menus.
Workflows
Visual automation builder. Create custom testing flows without writing code.
Who Uses Caido?
Security professionals worldwide trust Caido:
Bug bounty hunters finding vulnerabilities in web and mobile applications
Penetration testers conducting professional security assessments
Students, learning, casual testing, getting familiar with Caido
Individual
Unlimited projects
Unlimited workflows
Unlimited plugins
Unlimited filter presets
Unlimited installations
Bug bounty hunters, independent security researchers, and professional pentesters
The best part? The free Basic plan lets you explore all of Caido's core features. Once you're ready to scale up your testing, Individual gives you unlimited everything for the price of a couple of coffees per month.
Quick Comparison: Caido vs Traditional Proxies
Coming from other proxy tools? Here's how Caido compares:
Feature
Caido
Traditional Tools
Speed
Fast (Rust-based)
Slower (Java-based)
Query Language
HTTPQL (powerful, SQL-like)
Basic text search
Project Switching
Instant, no restart
Restart required
Workflows
Visual, drag-and-drop
Extension-based
Free Tier
Fully functional
Heavily limited
Getting Started
Caido runs on Windows, macOS, and Linux. It features a client-server architecture, meaning you can run it on a remote server and access it through your browser - perfect for cloud-based testing.
NOTE
Caido is pre-installed on the TryHackMe AttackBox, so you can start using it immediately without installation.
In the next task, we'll walk through installing Caido on your own system and creating your first project.
Answer the questions below
What query language does Caido use to filter HTTP traffic?
Task 3: Setting up Caido
Now that you understand what Caido is, let's get it running on your system. In this task, you'll download Caido, install it, create your first instance, and set up your first project. By the end, you'll have a fully functional Caido setup ready for web security testing.
NOTE
If you're using the TryHackMe AttackBox, Caido is already installed. You can skip the download and installation steps.
Downloading & Installation
Downloading Caido
Head over to the official Caido download page to grab the installer for your operating system.
macOS: Choose Mac Intel Chip or Mac Apple Chip (depending on your processor)
Linux: Select your Linux distribution
The download starts automatically. Once complete, you're ready to install.
Installing Caido
Installation is straightforward. Follow the steps for your operating system:
Windows Installation
Locate the downloaded .exe file in your Downloads folder
Double-click the installer to run it
Follow the installation wizard prompts
Click Install and wait for the process to complete
Launch Caido from your Start menu or desktop shortcut
macOS Installation
Open the downloaded .dmg file
A window appears showing the Caido icon and Applications folder
Drag the Caido icon into the Applications folder
Open your Applications folder and double-click Caido to launch
Linux Installation
Navigate to your Downloads folder
Extract the downloaded archive
Open a terminal in the extracted folder
Run the Caido binary: ./caido
Caido launches and is ready to use
With Caido installed, you're ready to create your first instance.
Understanding Instances
Before we dive into setup, let's quickly cover what an instance is in Caido.
An instance is a running Caido server. Think of it like this: Caido uses a client-server architecture. The server (instance) does the heavy lifting - intercepting traffic, storing data, and running workflows. The client (your browser or the Caido desktop app) connects to the instance to interact with it.
You can create multiple instances with different settings:
Local instances: Run on your machine (most common for daily testing)
Remote instances: Run on a server (useful for team collaboration or cloud testing)
Each instance has its own:
Port: Where it listens for connections (default: 8080)
Data path: Where it stores your projects and traffic
Settings: Custom configurations for that specific instance
For this room, we'll create a simple local instance. Let's do it.
Creating Your First Instance
In the AttackBox, launch the Caido application by clicking the Caido icon in the right-hand desktop dock. You'll see the instance manager window.
By default, Caido creates a "Local Instance" for you. But let's create our own so you understand the process.
Step 1: Open Instance Creation
Click the + New Instance button in the top-right corner of the instance manager.
Step 2: Configure Your Instance
A form appears. Fill it out with these settings:
Name:TryHackMe Lab - Give your instance a descriptive name. This helps when you have multiple instances for different projects.
Listening address:Localhost (127.0.0.1) (default) - This means Caido will only accept connections from your machine. Keep this for security.
Listening port:8080 (default) - The port where Caido listens. You can change this if 8080 is already in use by another application.
Allowed Domains: Leave blank for now. We'll configure this later when we set up scopes.
Step 3: Advanced Settings (Optional)
Click Advanced to see additional options. For now, keep the defaults:
Data path: Where Caido stores your data (auto-generated)
Debug logging: Disabled
Allow guests: Enabled
Step 4: Create the Instance
Click the red Create button at the bottom of the form.
Your instance appears in the list. Now let's start it.
Starting Caido
In the instance list, find your instance. Click the Start button (or Connect if you're using an existing instance).
Caido launches and automatically opens your browser for authentication.
Authenticating Your Instance
When you start an instance for the first time, Caido needs to link it to your account. This keeps your data secure and allows you to access the same instance from multiple devices.
A browser window opens showing the Caido authentication page at dashboard.caido.io.
Step 1: Sign In or Create an Account
If you already have a Caido account, click Sign in with Caido and enter your credentials.
If you don't have an account, click Create an account and follow the registration process, then return to sign in.
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're 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.
Step 2: Grant Permissions
After signing in, Caido asks for permission to access your account. You'll see options like:
View your username, email, and subscription
Enable the AI assistant feature
Stay logged in for an extended period
Select the boxes for the features you want to enable, then click Allow.
Step 3: Register Your Instance
After granting permissions, a "Register your Caido Instance" popup appears. Enter a name for your instance (e.g., TryHackMe Lab), select the Default (Personal) workspace, and click Register.
The authentication completes, and Caido's main interface loads in your browser. You're in!
Creating Your First Project
Caido organises your work into projects. Each project is like a separate workspace for a specific target or testing engagement. For example, you might have one project for each bug bounty program you're testing, or separate projects for different client assessments.
Let's create your first project.
Step 1: Open the Workspace Tab
Look at the left sidebar in Caido. At the bottom, you'll see the Workspace tab. Click it.
Step 2: Create a New Project
The Workspace interface shows all your projects. Right now, it's empty. Click the Create a Project button.
Step 3: Name Your Project
A dialog box appears asking for a project name. Enter something descriptive like TryHackMe Lab and click Create.
Your project loads immediately. You'll see the Caido interface with your project name displayed in the bottom-right corner.
You're Ready to Go
Congratulations! You've successfully:
Downloaded and installed Caido
Created your first instance
Authenticated your instance with your Caido account
Created your first project
Your Caido interface should now show:
An empty HTTP History (no traffic captured yet)
The Intercept tab (currently in Forwarding mode)
Your project name in the bottom corner
A clean, modern interface ready for testing
In the next task, we'll configure Caido to handle HTTPS traffic, allowing you to intercept encrypted web communications.
Answer the questions below
In which tab do you create new projects in Caido?
Task 4: Configuring HTTP/HTTPS Traffic
To intercept web traffic, you need to configure your browser to send requests through Caido. We'll start with HTTP traffic using the Caido Browser Extension, then handle HTTPS by installing Caido's CA certificate.
NOTE
If you're using the AttackBox, the Caido extension is already installed. Alternatively, you can also use FoxyProxy and select the Caido option. If you choose the Caido browser extension, make sure FoxyProxy's own Caido proxy entry is disabled first, as both routing traffic to the same port will conflict and prevent Caido from capturing requests.
Setting Up the Proxy
Step 1: Install the Caido Extension
Open your browser's extension store and search for "Caido":
Chrome: Chrome Web Store → Search "Caido" → Click "Add to Chrome"
Select ca.crt and check "Trust this CA to identify websites"
Step 3: Verify HTTPS Works
Visit https://example.com. No security warnings? Perfect! Check Caido's HTTP History - you should see the HTTPS request with full details.
You're all set. Caido now intercepts both HTTP and HTTPS traffic from your browser.
Answer the questions below
Which file extension does Caido's CA Certificate use?
Task 5: Understanding Caido Interface
Now that Caido is set up and intercepting traffic, let's explore the interface. Understanding where everything is will make your testing workflow much faster. Caido's interface is divided into four main areas: the sidebar, top bar, bottom bar, and settings.
The Sidebar: Your Navigation Hub
The left sidebar is your main navigation panel. It organises Caido's features into logical groups. Click any item to switch to that feature.
Core Features
Intercept: Pause and modify requests/responses in real time
HTTP History: View all captured HTTP traffic
WS History: View WebSocket communications
Replay: Resend requests with modifications
Automate: Run automated attacks with payloads
Organisation & Analysis
Sitemap: Visual tree of all domains and paths you've visited
Scopes: Define which targets are in scope for testing
Filters: Create HTTPQL rules to show/hide specific traffic
Search: Query your entire traffic history with HTTPQL
Advanced Tools
Match & Replace: Auto-modify requests/responses based on rules
Workflows: Build custom automation workflows
Assistant: AI-powered helper for explaining requests and generating PoCs
Environment: Manage environment variables for dynamic testing
Project Management
Workspace: Switch between projects and manage backups
Files: Upload wordlists and payloads
Plugins: Extend Caido with community plugins
Findings: Track discovered vulnerabilities
Exports: Export your testing data
TIP
Notice the "Collapse Sidebar" button at the bottom? Click it to hide the sidebar and get more screen space for your traffic table and request/response panes.
The Top Bar: Quick Controls
The top bar gives you access to critical controls and information.
Left Side - Traffic Controls
Forwarding Toggle: The green >> Forwarding button shows that Caido is passing traffic through automatically. Click it to switch to || Queuing mode, which intercepts all requests. We'll cover this in detail in the Intercept task.
Right Side - Environment & Settings
Browser Launcher: The browser icon opens a menu showing available browsers (Chrome, Firefox, Edge). Click one to launch a pre-configured browser with Caido's proxy and certificate already set up.
NOTE
If you are using the AttackBox, the Browser Launcher menu will appear empty.
Environment Selector: Choose which environment variables to use for your current session. Useful for switching between testing environments (dev, staging, production).
Project Switcher: The folder icon shows your current project name (DEMO in the screenshot). Click it to switch between projects or create new ones.
User Menu: Your profile picture opens a menu with multiple options like Account information, Settings access, CA Certificate download, and a logout option.
HTTPQL Search Bar: In certain tabs (HTTP History, Intercept, Search), you'll see an Enter an HTTPQL query... search bar. This lets you filter traffic using Caido's powerful query language. We'll dive deeper into HTTPQL in the next task.
The Bottom Bar: Power User Tools
The bottom bar contains tools that significantly speed up your workflow.
Commands (⌘K): Click Commands or press ⌘+K (Mac) / Ctrl+K (Windows/Linux) to open the Command Palette. This is Caido's quick navigation tool.
Type to search for features, navigate between tabs, or trigger actions without clicking through menus. For example, typing "intercept" would jump to the Intercept tab, or typing "replay" would jump to the Replay tab.
Logs: View Caido's internal logs for debugging issues or troubleshooting plugins.
Convert: The Convert tool is a quick encoder/decoder. Select any text in a request or response, click Convert, and choose an encoding (Base64, URL encode, hex, etc.). Much faster than copying text to an external tool.
Settings: Customise Your Experience
Click the user icon in the top-right corner and select Settings to access Caido's configuration panel. Settings are organised into categories:
User Settings (apply to all projects)
Appearance: Change UI font, font size, layout orientation (horizontal/vertical), and sidebar position (left/right)
Shortcuts: Customise keyboard shortcuts for faster navigation
Project Settings (specific to current project)
Websockets: Configure WebSocket handling
Instance Settings
Startup: Configure instance launch behaviour
Rendering: Adjust how responses are rendered
Network: Proxy and connection settings
Certificate: Manage CA certificates
AI: Configure AI Assistant settings
Developer Settings
Custom JavaScript: Add custom scripts
Custom CSS: Customise Caido's appearance
Advanced
Troubleshooting: Debug options and logs
Explore these settings to personalise Caido to your workflow. You can change the interface font, adjust colours, set up custom shortcuts, and much more.
You're now familiar with Caido's interface. In the next task, we'll learn about HTTPQL - Caido's powerful query language for filtering HTTP traffic.
Answer the questions below
Which sidebar tab shows all captured HTTP traffic?
What keyboard shortcut opens Caido's Command Palette? Just mention the key after Ctrl/Cmd + ?
Task 6: Introduction to HTTPQL
You've been capturing HTTP traffic in Caido, but finding specific requests by scrolling through hundreds or thousands of entries is inefficient. This is where HTTPQL comes in - Caido's powerful query language for filtering HTTP traffic with precision.
What is HTTP Query Language (HTTPQL)?
HTTPQL is a specialised query language designed for filtering and analysing HTTP traffic. Think of it like SQL, but specifically built for web security testing. Instead of manually searching through your traffic, you write queries like:
req.method.eq:"POST" - Show only POST requests
resp.code.eq:404 - Show only 404 responses
req.path.cont:"api" - Show requests with "api" in the path
HTTPQL searches through requests, responses, and metadata instantly. Whether you're looking for authentication failures, API endpoints, or potential vulnerabilities, HTTPQL helps you find exactly what you need.
HTTPQL Anatomy: The 4 Parts
Every HTTPQL query follows the same structure. Let's break it down:
1. Namespace - What you're querying
req - Request data (method, URL, headers, body)
resp - Response data (status code, headers, body)
row - Table metadata (row ID, timestamps)
2. Field - Which property to examine
host, method, path, query, code, raw, etc.
3. Operator - How to match
eq (equals), cont (contains), regex, gt (greater than), etc.
4. Value - What to match
String:"POST", "api", ".js"
Number:200, 404, 500
Date:"2025-07-22 16:00:00"
Common Operator Reference
Operator
Meaning
Example
Use Case
eq
Equals (exact match)
req.method.eq:"POST"
Find specific HTTP methods
ne
Not equals
resp.code.ne:200
Exclude successful responses
cont
Contains (case-insensitive)
req.path.cont:"api"
Find API endpoints
ncont
Not contains
req.host.ncont:"staging"
Exclude staging traffic
regex
Regular expression
req.path.regex:"/v[1-3]/"
Match patterns
gt
Greater than
resp.code.gt:399
Find errors (4xx/5xx)
lt
Less than
resp.code.lt:400
Find successful responses
like
SQL LIKE operator
req.ext.like:"%.js"
Wildcard matching
Practical Examples
Here are real-world queries you'll use during security testing:
Find potential CSRF-vulnerable requests (non-GET requests to the API with no CSRF token): req.host.cont:"api" AND req.query.ncont:"xsrf_param" AND req.method.ncont:"GET"
Locate requests with specific cookies: req.raw.cont:"cookieVal" AND resp.raw.cont:"Set-Cookie: j=cookieVal"
Find that one request from 5 minutes ago: req.path.cont:"thatOneReq" AND req.created_at.gt:"2025-07-22 16:00:00"
Show only legacy API versions (v1, v2, v3): req.path.regex:"/v[1-3]/"
Find all versioned endpoints: req.path.regex:"/api/v[1-9]/"
Combining Queries
You can combine multiple conditions using logical operators:
AND - Both conditions must be true: req.path.cont:"api" AND resp.code.eq:200
OR - Either condition can be true: resp.code.eq:401 OR resp.code.eq:403
Grouping with Parentheses:(req.method.eq:"POST" OR req.method.eq:"PUT") AND resp.code.gt:399
Where to Use HTTPQL
You can write HTTPQL queries in several places within Caido:
HTTP History: Search bar at the top filters the traffic table
Intercept: Filter which requests to intercept
Search: Query your entire traffic history
Filter Presets: Save commonly used queries (covered in the next task)
TIP
As you type HTTPQL queries, Caido shows autocomplete suggestions for namespaces, fields, and operators. Use this to discover available options!
HTTPQL is one of Caido's most powerful features. Mastering it will dramatically speed up your security testing workflow. In the next task, we'll explore Scopes and Filters - where you'll save your favourite HTTPQL queries for instant reuse.
Answer the questions below
In the HTTPQL query req.host.cont:"api", what does cont stand for?
Which namespace would you use to filter responses by HTTP status codes?
Which operator would you use to find requests created AFTER a specific date?
Task 7: Scopes and Filters
You've learned HTTPQL for querying traffic. Now let's take it further with Scopes and Filters - tools that help you focus on what matters and save your favourite queries for instant reuse.
Scopes
Scopes define which domains or subdomains you're testing. Think of it as drawing boundaries around your target. Everything inside the scope is fair game for testing. Everything outside is ignored. We use scopes to:
Focus on your target - See only relevant traffic
Stay professional - Avoid accidentally testing wrong domains
Cleaner workspace - Traffic tables show only in-scope requests
Better organisation - Essential for bug bounty and penetration testing
Creating a Scope Preset
Step 1: Click the Scopes tab in the sidebar
Step 2: Create a New Preset by clicking the + New Preset button at the bottom of the Scopes panel
Step 3: Name Your Scope and enter a descriptive name in the Name field (e.g., "Example Scope")
Step 4: Define In-Scope Domains in the In Scope field, add domains you're authorised to test, one per line
Step 5: Click Save or Update preset to save your scope
Using Wildcards in Scopes
Scopes support powerful wildcard patterns to match multiple domains at once.
Wildcard Characters:
* - Matches any sequence of 0 or more characters
? - Matches any single character
[abc] - Matches one character from the bracket
[a-z] - Matches one character from the range
[^abc] - Matches one character NOT in the bracket
Examples:
*.google.com - Matches any subdomain of google.com (mail.google.com, drive.google.com)
?.google.com - Matches single-character subdomains (1.google.com) but NOT 123.google.com
[abc].google.com - Matches a.google.com, b.google.com, c.google.com only
[a-z].google.com - Matches any single lowercase letter subdomain
[^abc].google.com - Matches any subdomain EXCEPT a, b, or c
NOTE A wildcard like *.example.com matches subdomains only, not the bare domain. To scope both, add example.com and *.example.com as separate lines in your target list.
Applying a Scope
Once you've created a scope preset, you need to activate it. At the top of HTTP History or any other traffic table, you'll see a Scope dropdown (usually shows Unset Scope). Click it and select your scope (e.g., Example Scope).
The traffic table instantly filters to show only in-scope requests. Out-of-scope traffic is hidden.
The Sitemap also respects your active scope, showing only in-scope domains in the tree view.
Filters
Filters let you save your HTTPQL queries as reusable presets. Instead of rewriting req.method.eq:"POST" every time, save it as a filter called "POST Requests" and enable it with one click.
Filters are:
Project-specific - Each project has its own set of filters
Time-saving - Essential for efficient testing workflows
Built-in Filters
Caido comes with two default filter presets ready to use:
No Images - Hides all image requests (.png, .jpg, .gif, .svg, etc.)
No Styling - Hides CSS and icon files (.css, .ico)
These are pre-configured and available in every project.
Creating a Custom Filter Preset
Step 1: Click the Filters tab in the sidebar
Step 2: Create a New Preset by clicking the + New Preset button
Step 3: Configure your filter - fill in the details like Name (Google API), Alias (gapi), and Expression (your HTTPQL query like req.host.cont:"googleapis.com" OR req.host.cont:"clients6.google.com")
Step 4: Click Save to create the filter preset
Applying Filters
There are two ways to use your filter presets:
Method 1: Advanced Options Panel
In the HTTP History view (or any traffic table), click the Advanced button next to the HTTPQL search bar to open the advanced options panel on the right. From there, scroll to the Custom Presets section, select the filters you want to enable, and the traffic table will update instantly.
You can enable multiple filters at once. They work together using AND logic.
Method 2: Use in HTTPQL Queries
Type directly in the HTTPQL search bar: preset:gapi
Or combine with other queries: preset:gapi AND req.method.eq:"POST"
Saving Queries as Presets
Found yourself writing the same HTTPQL query repeatedly? Save it as a filter.
Quick Save Method:
Write your HTTPQL query in the search bar (e.g., req.path.regex:"/v[1-3]/")
Click the 💾 icon next to the search bar
A dialog appears with the query pre-filled
Enter a Name and Alias
Click Create
Your query is now a reusable filter preset.
Scopes vs Filters: When to Use Each
Use Scopes When...
Use Filters When...
Defining testing boundaries
Finding specific request types
Working with multiple domains
Hiding noise (images, CSS)
Setting up a new project
Analysing traffic patterns
Staying within authorisation
Searching by any criteria
Scopes and Filters work together to keep your testing organised and efficient. Scopes define WHERE you're testing, and Filters define WHAT you're looking at. Master both, and you'll navigate thousands of requests effortlessly.
Answer the questions below
Which wildcard matches ALL subdomains of example.com?
Which panel do you use to enable or disable filter presets in HTTP History?
Task 8: Intercepting Requests
One of the most powerful features in Caido is the ability to intercept traffic. Interception lets you pause requests and responses mid-flight, inspect them, modify them, and then decide whether to send them forward or drop them entirely. This is essential for testing authentication, bypassing client-side checks, and manipulating application behaviour.
What is Interception?
When you intercept traffic, Caido acts like a gatekeeper between your browser and the web server. Every request your browser sends, and every response the server sends back, stops at Caido first. You can then:
View the full request/response - See headers, body, parameters
Forward it - Send the modified (or original) traffic to its destination
Drop it - Delete the traffic so it never reaches its destination
This gives you complete control over the communication between the browser and the server.
Enabling Interception
Step 1: Navigate to Intercept
Click the Intercept tab in the sidebar (under the Proxy section).
Step 2: Enable Queuing Mode
At the top bar of the interface, you'll see the >> Forwarding button. This means traffic is flowing through Caido without stopping. Click it to switch to || Queuing mode.
Now Caido intercepts all traffic. Requests, responses, and WebSocket messages will queue up waiting for your action.
Choosing What to Intercept
By default, Caido doesn't intercept everything - you need to tell it what to capture.
At the top of the Intercept interface, you'll see three checkboxes:
Requests - Intercept HTTP requests before they reach the server
Responses - Intercept HTTP responses before they reach your browser
Websockets - Intercept WebSocket messages
Check the boxes for the traffic types you want to intercept. You can enable one, two, or all three simultaneously.
TIP
Start by intercepting requests only. Intercepting Responses and WebSockets can create a lot of traffic to manage.
Intercepted Traffic Queue
Once interception is active, traffic starts queuing up. The Intercept interface has three tabs:
Requests - Queued HTTP requests
Responses - Queued HTTP responses
Websockets - Queued WebSocket messages
Click a tab to see its queued traffic. Click a row in the table to view it in the panes below. Here's how the interface works:
Step 1: Control Traffic Flow. The || Queuing button at the top controls whether traffic is being intercepted. Click it to toggle between Queuing mode (intercept active) and Forwarding mode (traffic flows normally).
Step 2: Filter What You See. Use the HTTPQL search bar to filter which requests appear in the queue. For example, type req.method.eq:"POST" to see only POST requests.
Step 3: Choose What to Intercept. The checkboxes let you select which traffic types to intercept: Requests, Responses, or Websockets. Check the boxes for what you want to capture.
Step 4: Select a Request. The request table shows all queued traffic. Click any row to view its details in the panes below.
Step 5: View and Take Action. The bottom panes display the selected request and its response. Each pane has Drop and Forward buttons, allowing you to either delete the traffic or send it to its destination.
Actions: Forward, Drop, or Modify
Once you've intercepted traffic, you have three options:
Forward
Click the red Forward button to send the traffic to its destination. If you've modified the request, the modified version is sent. If you haven't made any changes, the original traffic is forwarded.
Drop
Click the Drop button to delete the traffic. The request never reaches the server, or the response never reaches your browser. This is useful for testing how applications handle missing requests or blocked responses.
Modify
Click inside the request or response pane to edit it directly. You can:
Change header values
Modify POST parameters
Add or remove cookies
Edit the request body
Change the HTTP method
After making the modifications, click Forward to send your changes.
TIP
If you make a mistake, click the undo button (↶) to restore the traffic to its original state.
Filtering Intercepted Traffic
Intercepting everything can get overwhelming fast. Caido lets you filter what gets intercepted.
Filter by Scope
At the top of the Intercept interface, use the Scope dropdown to select an active scope. Only traffic matching your scope will be intercepted.
Filter with HTTPQL
Use the HTTPQL query bar to filter even further. For example:
Only intercept POST requests: req.method.eq:"POST"
Only intercept API calls: req.path.cont:"api"
Only intercept a specific host: req.host.eq:"example.com"
The queue table updates to show only matching traffic.
Disabling Interception
When you're done intercepting, disable queuing mode.
Option 1: Disable All Interception
Click the || Queuing button to switch back to >> Forwarding. All traffic flows normally again.
Option 2: Disable Specific Traffic Types
Uncheck the Requests, Responses, or Websockets checkboxes to stop intercepting that traffic type while keeping others active.
Interception is the heart of manual web application testing. Master it, and you'll be able to test applications in ways developers never intended.
Answer the questions below
Which button sends intercepted traffic to its destination?
Can you intercept WebSocket messages in Caido? (yea/nay)
Task 9: Replaying Requests
After intercepting and analysing traffic, you'll often need to resend requests with modifications to test how the application responds. This is where Replay comes in - Caido's manual testing workspace for sending requests repeatedly with different parameters, headers, or body content.
What is Replay?
Replay is a dedicated interface for manual request testing. Unlike Intercept (which catches traffic in real time), Replay lets you work with saved requests at your own pace. With Replay, you can:
Modify requests - Change any part of the request before sending
Resend repeatedly - Send the same request hundreds of times
Compare responses - See how different modifications affect the server's response
Organise your work - Group related requests into Collections
This is essential for testing authentication bypasses, privilege escalation, parameter tampering, and other vulnerabilities that require manual manipulation.
Sending Requests to Replay
You can send any request from anywhere in Caido to the Replay interface.
Method 1: Right-Click
You can send any request from HTTP History, Intercept, Sitemap, or Search to Replay using this method:
Step 1: Right-click on a request in HTTP History, Intercept, Sitemap, or Search
Step 2: Hover over "Send to Replay" in the context menu
Step 3: Select a Collection from the submenu (e.g., "Default Collection") or click "+ Create New Collection" to make a new one
Method 2: Keyboard Shortcut
Click on a request and press Ctrl+R (Windows/Linux) or Cmd+R (Mac). This instantly sends the request to Replay in the Default Collection.
Replay Collections: Organising Your Work
Collections are groups that hold multiple requests. Think of them as folders for organising your testing. Why use Collections?
Group by vulnerability type - "SQL Injection", "XSS", "Auth Bypass"
Group by endpoint - "API Tests", "Login Flow", "Payment Processing"
Group by testing phase - "Initial Recon", "Exploitation", "Post-Exploitation"
Creating a Collection
Step 1: Navigate to the Replay tab in the sidebar
Step 2: Click the dropdown arrow next to the + New Session button and select New collection
Step 3: Name your collection (e.g., "Vulns", "API Tests")
Your new collection appears in the left sidebar under "Default Collection".
Moving Requests Between Collections
Already have requests in one collection but want to move them?
Step 1: Right-click on a session tab at the top
Step 2: Select Move
Step 3: Choose the destination collection from the menu
The Replay Interface
When you open a session in Replay, the interface is divided into key areas:
Session Tabs (top) - Each open request appears as a tab. Click a tab to switch between requests
Request Pane (left) - The full HTTP request. Click inside to edit any part of it
Response Pane (right) - The server's response after you click Send
Send Button (centre) - Click to resend the request to the server
Collections Sidebar (left) - Shows all your collections and saved sessions
Modifying and Resending Requests
Click inside the Request pane to make changes. You can modify:
Parameters - Change query string or POST parameters
HTTP Method - Change GET to POST, PUT to DELETE, etc.
Request Body - Edit JSON, XML, form data
After making your changes, click the red Send button. The server processes your modified request, and the response appears in the Response pane. You can send the same request as many times as you want, making different modifications each time to test the application's behaviour.
Managing Open Sessions
Working with multiple requests? Replay gives you powerful tab management. Right-click on any session tab to see options:
Rename - Give the session a descriptive name
Move - Move to a different collection
Close - Close this tab
Close Others - Close all tabs except this one
Close to the Left - Close all tabs to the left
Close to the Right - Close all tabs to the right
Close All - Close all open tabs
IMPORTANT
Closing a tab doesn't delete the request. The session is still saved in its Collection in the left sidebar. Click it to reopen anytime.
Session History: Track Your Testing
Every request you send from Replay is tracked in the session's history. Click the History dropdown at the top centre of the interface. The History panel shows:
Method - HTTP method used
Host - Target server
Path - Request path
Status - Response status code
Timestamp - When the request was sent
Use the search bar to quickly find specific requests.
This feature is incredibly useful for:
Comparing attempts - See which parameter value caused a different response
Tracking progress - Review what you've already tested
Revisiting responses - Click any history entry to view that request/response again
Replay is your manual testing workbench. While Intercept lets you catch traffic in real time, Replay gives you a controlled environment to methodically test requests, organise your findings, and track your testing history. Master both, and you'll have complete control over your web application testing workflow.
Answer the questions below
What is the name of the feature that holds multiple requests in Replay for organisation?
Does closing a session tab delete the request? (yea/nay)
Task 10: Practical Challenge: Finding Your First Flag
You've learned the fundamentals of Caido - from capturing traffic to filtering with HTTPQL, intercepting requests, and replaying them. Now it's time to put everything together in a hands-on challenge.
The Challenge
In this task, you'll analyse HTTP traffic to find a hidden flag. The flag follows this format: FLAG{...} with random characters inside the curly braces.
Lab Setup
You can access the web app at MACHINE_IP in your AttackBox. The web app has a button titled "Start Searching". When you click it, the application will send hundreds of requests through your Caido proxy. Your job is to find the flag hidden somewhere in the responses.
Hint: Use HTTPQL to filter responses containing a specific value. If you get stuck, the web app has a Show Hint button that points you in the right direction.
Answer the questions below
What is the flag?
Task 11: Conclusion
Congratulations on completing the Caido Basics room! You now have a solid understanding of Caido's interface, core features, and testing workflow. These skills will be essential as you continue your journey in web application security testing.
What You've Learned
Setting up Caido and configuring HTTP/HTTPS interception
Navigating the interface and customising your workspace
Writing HTTPQL queries to filter traffic like a pro
Using Scopes and Filters to stay organised
Intercepting and modifying requests in real time
Replaying requests with Collections and tracking your testing history
These are the building blocks of professional web application testing. Whether you're doing bug bounty hunting, penetration testing, or security research, you now have the foundation to analyse and manipulate web traffic efficiently.
Beyond the Basics
Caido offers additional powerful features for advanced testing:
Automate - Run automated attacks with custom payloads
Workflows - Build custom automation chains
Match & Replace - Automatically modify traffic based on rules
Continue exploring Caido's capabilities and experiment with our next room. You can visit the room Caido: Basic Tools to learn more about Caido's functionality. The more you practice, the more proficient you'll become.
An introduction to using Caido to inspect and test web applications.
easy
90 min
2,654
To access material, start machines and answer questions login.
Welcome to Caido Basics!
You're about to learn one of the most powerful tools in modern web security testing. Caido is a lightweight, fast built by hackers for hackers - and in this room, you'll master its fundamentals.
This room will take you from zero to confident with Caido. Here's what you'll learn:
What Caido is and why security professionals are switching to it
How to install and set up your first Caido project
Configuring HTTPS traffic interception with certificates
Navigating the Caido interface like a pro
Using HTTPQL to filter and query HTTP traffic
Setting up scopes and filters for focused testing
Intercepting and modifying requests in real time
Replaying requests to test vulnerabilities
Putting it all together in a practical challenge
By the end of this room, you'll be ready to use Caido for bug bounty hunting, penetration testing, and web application security assessments.
This room builds a solid foundation. You'll get hands-on experience with each feature, and we'll finish with a practical challenge where you'll capture your first flag using Caido.
If you're new to HTTP proxies, don't worry. We'll explain everything step by step. If you're coming from other proxy tools, you'll appreciate Caido's speed and modern interface.
You will need the AttackBox and a vulnerable machine provided in this room. Please click the Start AttackBox button to launch your AttackBox environment.
Let's get started!
Answer the questions below
I am ready to start the room.
Caido is a lightweight web security auditing toolkit designed specifically for modern security testing. At its core, it's an that sits between your browser and web servers, giving you complete control over web traffic.
Think of Caido as your window into how web applications communicate. Every request your browser sends and every response it receives passes through Caido first. You can view, intercept, modify, and replay this traffic, making it essential for finding vulnerabilities in web applications.
Why Caido?
Caido was built by hackers for hackers with a focus on speed and efficiency. Here's what sets it apart:
Feature
What It Means for You
Built with Rust
Lightning-fast performance with minimal memory usage. No Java overhead means your testing flows smoothly.
HTTPQL
Write powerful queries like req.method.eq:"POST" AND resp.code.eq:200 to filter traffic precisely.
Project Switching
Change between testing targets instantly without restarting. Perfect for multiple bug bounty programs.
Modern Interface
Clean, intuitive design. Find what you need without hunting through endless menus.
Workflows
Visual automation builder. Create custom testing flows without writing code.
Who Uses Caido?
Security professionals worldwide trust Caido:
Bug bounty hunters finding vulnerabilities in web and mobile applications
Penetration testers conducting professional security assessments
Students, learning, casual testing, getting familiar with Caido
Individual
Unlimited projects
Unlimited workflows
Unlimited plugins
Unlimited filter presets
Unlimited installations
Bug bounty hunters, independent security researchers, and professional pentesters
The best part? The free Basic plan lets you explore all of Caido's core features. Once you're ready to scale up your testing, Individual gives you unlimited everything for the price of a couple of coffees per month.
Quick Comparison: Caido vs Traditional Proxies
Coming from other proxy tools? Here's how Caido compares:
Feature
Caido
Traditional Tools
Speed
Fast (Rust-based)
Slower (Java-based)
Query Language
HTTPQL (powerful, -like)
Basic text search
Project Switching
Instant, no restart
Restart required
Workflows
Visual, drag-and-drop
Extension-based
Free Tier
Fully functional
Heavily limited
Getting Started
Caido runs on Windows, macOS, and . It features a client-server architecture, meaning you can run it on a remote server and access it through your browser - perfect for cloud-based testing.
NOTE
Caido is pre-installed on the TryHackMe AttackBox, so you can start using it immediately without installation.
In the next task, we'll walk through installing Caido on your own system and creating your first project.
Answer the questions below
What query language does Caido use to filter HTTP traffic?
Now that you understand what Caido is, let's get it running on your system. In this task, you'll download Caido, install it, create your first instance, and set up your first project. By the end, you'll have a fully functional Caido setup ready for web security testing.
NOTE
If you're using the TryHackMe AttackBox, Caido is already installed. You can skip the download and installation steps.
Downloading & Installation
Downloading Caido
Head over to the official Caido download page to grab the installer for your operating system.
macOS: Choose Mac Intel Chip or Mac Apple Chip (depending on your processor)
: Select your Linux distribution
The download starts automatically. Once complete, you're ready to install.
Installing Caido
Installation is straightforward. Follow the steps for your operating system:
Windows Installation
Locate the downloaded .exe file in your Downloads folder
Double-click the installer to run it
Follow the installation wizard prompts
Click Install and wait for the process to complete
Launch Caido from your Start menu or desktop shortcut
macOS Installation
Open the downloaded .dmg file
A window appears showing the Caido icon and Applications folder
Drag the Caido icon into the Applications folder
Open your Applications folder and double-click Caido to launch
Linux Installation
Navigate to your Downloads folder
Extract the downloaded archive
Open a terminal in the extracted folder
Run the Caido binary: ./caido
Caido launches and is ready to use
With Caido installed, you're ready to create your first instance.
Understanding Instances
Before we dive into setup, let's quickly cover what an instance is in Caido.
An instance is a running Caido server. Think of it like this: Caido uses a client-server architecture. The server (instance) does the heavy lifting - intercepting traffic, storing data, and running workflows. The client (your browser or the Caido desktop app) connects to the instance to interact with it.
You can create multiple instances with different settings:
Local instances: Run on your machine (most common for daily testing)
Remote instances: Run on a server (useful for team collaboration or cloud testing)
Each instance has its own:
Port: Where it listens for connections (default: 8080)
Data path: Where it stores your projects and traffic
Settings: Custom configurations for that specific instance
For this room, we'll create a simple local instance. Let's do it.
Creating Your First Instance
In the AttackBox, launch the Caido application by clicking the Caido icon in the right-hand desktop dock. You'll see the instance manager window.
By default, Caido creates a "Local Instance" for you. But let's create our own so you understand the process.
Step 1: Open Instance Creation
Click the + New Instance button in the top-right corner of the instance manager.
Step 2: Configure Your Instance
A form appears. Fill it out with these settings:
Name:TryHackMe Lab - Give your instance a descriptive name. This helps when you have multiple instances for different projects.
Listening address:Localhost (127.0.0.1) (default) - This means Caido will only accept connections from your machine. Keep this for security.
Listening port:8080 (default) - The port where Caido listens. You can change this if 8080 is already in use by another application.
Allowed Domains: Leave blank for now. We'll configure this later when we set up scopes.
Step 3: Advanced Settings (Optional)
Click Advanced to see additional options. For now, keep the defaults:
Data path: Where Caido stores your data (auto-generated)
Debug logging: Disabled
Allow guests: Enabled
Step 4: Create the Instance
Click the red Create button at the bottom of the form.
Your instance appears in the list. Now let's start it.
Starting Caido
In the instance list, find your instance. Click the Start button (or Connect if you're using an existing instance).
Caido launches and automatically opens your browser for authentication.
Authenticating Your Instance
When you start an instance for the first time, Caido needs to link it to your account. This keeps your data secure and allows you to access the same instance from multiple devices.
A browser window opens showing the Caido authentication page at dashboard.caido.io.
Step 1: Sign In or Create an Account
If you already have a Caido account, click Sign in with Caido and enter your credentials.
If you don't have an account, click Create an account and follow the registration process, then return to sign in.
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're 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.
Step 2: Grant Permissions
After signing in, Caido asks for permission to access your account. You'll see options like:
View your username, email, and subscription
Enable the AI assistant feature
Stay logged in for an extended period
Select the boxes for the features you want to enable, then click Allow.
Step 3: Register Your Instance
After granting permissions, a "Register your Caido Instance" popup appears. Enter a name for your instance (e.g., TryHackMe Lab), select the Default (Personal) workspace, and click Register.
The authentication completes, and Caido's main interface loads in your browser. You're in!
Creating Your First Project
Caido organises your work into projects. Each project is like a separate workspace for a specific target or testing engagement. For example, you might have one project for each bug bounty program you're testing, or separate projects for different client assessments.
Let's create your first project.
Step 1: Open the Workspace Tab
Look at the left sidebar in Caido. At the bottom, you'll see the Workspace tab. Click it.
Step 2: Create a New Project
The Workspace interface shows all your projects. Right now, it's empty. Click the Create a Project button.
Step 3: Name Your Project
A dialog box appears asking for a project name. Enter something descriptive like TryHackMe Lab and click Create.
Your project loads immediately. You'll see the Caido interface with your project name displayed in the bottom-right corner.
You're Ready to Go
Congratulations! You've successfully:
Downloaded and installed Caido
Created your first instance
Authenticated your instance with your Caido account
Created your first project
Your Caido interface should now show:
An empty History (no traffic captured yet)
The Intercept tab (currently in Forwarding mode)
Your project name in the bottom corner
A clean, modern interface ready for testing
In the next task, we'll configure Caido to handle HTTPS traffic, allowing you to intercept encrypted web communications.
Answer the questions below
In which tab do you create new projects in Caido?
To intercept web traffic, you need to configure your browser to send requests through Caido. We'll start with traffic using the Caido Browser Extension, then handle HTTPS by installing Caido's certificate.
NOTE
If you're using the AttackBox, the Caido extension is already installed. Alternatively, you can also use FoxyProxy and select the Caido option. If you choose the Caido browser extension, make sure FoxyProxy's own Caido entry is disabled first, as both routing traffic to the same port will conflict and prevent Caido from capturing requests.
Setting Up the Proxy
Step 1: Install the Caido Extension
Open your browser's extension store and search for "Caido":
Chrome: Chrome Web Store → Search "Caido" → Click "Add to Chrome"
Select ca.crt and check "Trust this CA to identify websites"
Step 3: Verify HTTPS Works
Visit https://example.com. No security warnings? Perfect! Check Caido's HTTP History - you should see the HTTPS request with full details.
You're all set. Caido now intercepts both HTTP and HTTPS traffic from your browser.
Answer the questions below
Which file extension does Caido's CA Certificate use?
Now that Caido is set up and intercepting traffic, let's explore the interface. Understanding where everything is will make your testing workflow much faster. Caido's interface is divided into four main areas: the sidebar, top bar, bottom bar, and settings.
The Sidebar: Your Navigation Hub
The left sidebar is your main navigation panel. It organises Caido's features into logical groups. Click any item to switch to that feature.
Core Features
Intercept: Pause and modify requests/responses in real time
History: View all captured HTTP traffic
WS History: View WebSocket communications
Replay: Resend requests with modifications
Automate: Run automated attacks with payloads
Organisation & Analysis
Sitemap: Visual tree of all domains and paths you've visited
Scopes: Define which targets are in scope for testing
Filters: Create HTTPQL rules to show/hide specific traffic
Search: Query your entire traffic history with HTTPQL
Advanced Tools
Match & Replace: Auto-modify requests/responses based on rules
Workflows: Build custom automation workflows
Assistant: -powered helper for explaining requests and generating PoCs
Environment: Manage environment variables for dynamic testing
Project Management
Workspace: Switch between projects and manage backups
Files: Upload wordlists and payloads
Plugins: Extend Caido with community plugins
Findings: Track discovered vulnerabilities
Exports: Export your testing data
TIP
Notice the "Collapse Sidebar" button at the bottom? Click it to hide the sidebar and get more screen space for your traffic table and request/response panes.
The Top Bar: Quick Controls
The top bar gives you access to critical controls and information.
Left Side - Traffic Controls
Forwarding Toggle: The green >> Forwarding button shows that Caido is passing traffic through automatically. Click it to switch to || Queuing mode, which intercepts all requests. We'll cover this in detail in the Intercept task.
Right Side - Environment & Settings
Browser Launcher: The browser icon opens a menu showing available browsers (Chrome, Firefox, Edge). Click one to launch a pre-configured browser with Caido's proxy and certificate already set up.
NOTE
If you are using the AttackBox, the Browser Launcher menu will appear empty.
Environment Selector: Choose which environment variables to use for your current session. Useful for switching between testing environments (dev, staging, production).
Project Switcher: The folder icon shows your current project name (DEMO in the screenshot). Click it to switch between projects or create new ones.
User Menu: Your profile picture opens a menu with multiple options like Account information, Settings access, CA Certificate download, and a logout option.
HTTPQL Search Bar: In certain tabs (HTTP History, Intercept, Search), you'll see an Enter an HTTPQL query... search bar. This lets you filter traffic using Caido's powerful query language. We'll dive deeper into HTTPQL in the next task.
The Bottom Bar: Power User Tools
The bottom bar contains tools that significantly speed up your workflow.
Commands (⌘K): Click Commands or press ⌘+K (Mac) / Ctrl+K (Windows/Linux) to open the Command Palette. This is Caido's quick navigation tool.
Type to search for features, navigate between tabs, or trigger actions without clicking through menus. For example, typing "intercept" would jump to the Intercept tab, or typing "replay" would jump to the Replay tab.
Logs: View Caido's internal logs for debugging issues or troubleshooting plugins.
Convert: The Convert tool is a quick encoder/decoder. Select any text in a request or response, click Convert, and choose an encoding (, URL encode, hex, etc.). Much faster than copying text to an external tool.
Settings: Customise Your Experience
Click the user icon in the top-right corner and select Settings to access Caido's configuration panel. Settings are organised into categories:
User Settings (apply to all projects)
Appearance: Change UI font, font size, layout orientation (horizontal/vertical), and sidebar position (left/right)
Shortcuts: Customise keyboard shortcuts for faster navigation
Project Settings (specific to current project)
Websockets: Configure WebSocket handling
Instance Settings
Startup: Configure instance launch behaviour
Rendering: Adjust how responses are rendered
Network: and connection settings
Certificate: Manage certificates
AI: Configure AI Assistant settings
Developer Settings
Custom JavaScript: Add custom scripts
Custom CSS: Customise Caido's appearance
Advanced
Troubleshooting: Debug options and logs
Explore these settings to personalise Caido to your workflow. You can change the interface font, adjust colours, set up custom shortcuts, and much more.
You're now familiar with Caido's interface. In the next task, we'll learn about HTTPQL - Caido's powerful query language for filtering HTTP traffic.
Answer the questions below
Which sidebar tab shows all captured HTTP traffic?
What keyboard shortcut opens Caido's Command Palette? Just mention the key after Ctrl/Cmd + ?
You've been capturing traffic in Caido, but finding specific requests by scrolling through hundreds or thousands of entries is inefficient. This is where HTTPQL comes in - Caido's powerful query language for filtering HTTP traffic with precision.
What is HTTP Query Language (HTTPQL)?
HTTPQL is a specialised query language designed for filtering and analysing HTTP traffic. Think of it like , but specifically built for web security testing. Instead of manually searching through your traffic, you write queries like:
req.method.eq:"POST" - Show only POST requests
resp.code.eq:404 - Show only 404 responses
req.path.cont:"api" - Show requests with "" in the path
HTTPQL searches through requests, responses, and metadata instantly. Whether you're looking for authentication failures, API endpoints, or potential vulnerabilities, HTTPQL helps you find exactly what you need.
HTTPQL Anatomy: The 4 Parts
Every HTTPQL query follows the same structure. Let's break it down:
1. Namespace - What you're querying
req - Request data (method, URL, headers, body)
resp - Response data (status code, headers, body)
row - Table metadata (row ID, timestamps)
2. Field - Which property to examine
host, method, path, query, code, raw, etc.
3. Operator - How to match
eq (equals), cont (contains), regex, gt (greater than), etc.
4. Value - What to match
String:"POST", "api", ".js"
Number:200, 404, 500
Date:"2025-07-22 16:00:00"
Common Operator Reference
Operator
Meaning
Example
Use Case
eq
Equals (exact match)
req.method.eq:"POST"
Find specific HTTP methods
ne
Not equals
resp.code.ne:200
Exclude successful responses
cont
Contains (case-insensitive)
req.path.cont:"api"
Find API endpoints
ncont
Not contains
req.host.ncont:"staging"
Exclude staging traffic
regex
Regular expression
req.path.regex:"/v[1-3]/"
Match patterns
gt
Greater than
resp.code.gt:399
Find errors (4xx/5xx)
lt
Less than
resp.code.lt:400
Find successful responses
like
SQL LIKE operator
req.ext.like:"%.js"
Wildcard matching
Practical Examples
Here are real-world queries you'll use during security testing:
Find potential CSRF-vulnerable requests (non-GET requests to the API with no CSRF token): req.host.cont:"api" AND req.query.ncont:"xsrf_param" AND req.method.ncont:"GET"
Locate requests with specific cookies: req.raw.cont:"cookieVal" AND resp.raw.cont:"Set-Cookie: j=cookieVal"
Find that one request from 5 minutes ago: req.path.cont:"thatOneReq" AND req.created_at.gt:"2025-07-22 16:00:00"
Show only legacy API versions (v1, v2, v3): req.path.regex:"/v[1-3]/"
Find all versioned endpoints: req.path.regex:"/api/v[1-9]/"
Combining Queries
You can combine multiple conditions using logical operators:
AND - Both conditions must be true: req.path.cont:"api" AND resp.code.eq:200
OR - Either condition can be true: resp.code.eq:401 OR resp.code.eq:403
Grouping with Parentheses:(req.method.eq:"POST" OR req.method.eq:"PUT") AND resp.code.gt:399
Where to Use HTTPQL
You can write HTTPQL queries in several places within Caido:
HTTP History: Search bar at the top filters the traffic table
Intercept: Filter which requests to intercept
Search: Query your entire traffic history
Filter Presets: Save commonly used queries (covered in the next task)
TIP
As you type HTTPQL queries, Caido shows autocomplete suggestions for namespaces, fields, and operators. Use this to discover available options!
HTTPQL is one of Caido's most powerful features. Mastering it will dramatically speed up your security testing workflow. In the next task, we'll explore Scopes and Filters - where you'll save your favourite HTTPQL queries for instant reuse.
Answer the questions below
In the HTTPQL query req.host.cont:"api", what does cont stand for?
Which namespace would you use to filter responses by HTTP status codes?
Which operator would you use to find requests created AFTER a specific date?
You've learned HTTPQL for querying traffic. Now let's take it further with Scopes and Filters - tools that help you focus on what matters and save your favourite queries for instant reuse.
Scopes
Scopes define which domains or subdomains you're testing. Think of it as drawing boundaries around your target. Everything inside the scope is fair game for testing. Everything outside is ignored. We use scopes to:
Focus on your target - See only relevant traffic
Stay professional - Avoid accidentally testing wrong domains
Cleaner workspace - Traffic tables show only in-scope requests
Better organisation - Essential for bug bounty and penetration testing
Creating a Scope Preset
Step 1: Click the Scopes tab in the sidebar
Step 2: Create a New Preset by clicking the + New Preset button at the bottom of the Scopes panel
Step 3: Name Your Scope and enter a descriptive name in the Name field (e.g., "Example Scope")
Step 4: Define In-Scope Domains in the In Scope field, add domains you're authorised to test, one per line
Step 5: Click Save or Update preset to save your scope
Using Wildcards in Scopes
Scopes support powerful wildcard patterns to match multiple domains at once.
Wildcard Characters:
* - Matches any sequence of 0 or more characters
? - Matches any single character
[abc] - Matches one character from the bracket
[a-z] - Matches one character from the range
[^abc] - Matches one character NOT in the bracket
Examples:
*.google.com - Matches any subdomain of google.com (mail.google.com, drive.google.com)
?.google.com - Matches single-character subdomains (1.google.com) but NOT 123.google.com
[abc].google.com - Matches a.google.com, b.google.com, c.google.com only
[a-z].google.com - Matches any single lowercase letter subdomain
[^abc].google.com - Matches any subdomain EXCEPT a, b, or c
NOTE A wildcard like *.example.com matches subdomains only, not the bare domain. To scope both, add example.com and *.example.com as separate lines in your target list.
Applying a Scope
Once you've created a scope preset, you need to activate it. At the top of HTTP History or any other traffic table, you'll see a Scope dropdown (usually shows Unset Scope). Click it and select your scope (e.g., Example Scope).
The traffic table instantly filters to show only in-scope requests. Out-of-scope traffic is hidden.
The Sitemap also respects your active scope, showing only in-scope domains in the tree view.
Filters
Filters let you save your HTTPQL queries as reusable presets. Instead of rewriting req.method.eq:"POST" every time, save it as a filter called "POST Requests" and enable it with one click.
Filters are:
Project-specific - Each project has its own set of filters
Time-saving - Essential for efficient testing workflows
Built-in Filters
Caido comes with two default filter presets ready to use:
No Images - Hides all image requests (.png, .jpg, .gif, .svg, etc.)
No Styling - Hides CSS and icon files (.css, .ico)
These are pre-configured and available in every project.
Creating a Custom Filter Preset
Step 1: Click the Filters tab in the sidebar
Step 2: Create a New Preset by clicking the + New Preset button
Step 3: Configure your filter - fill in the details like Name (Google API), Alias (gapi), and Expression (your HTTPQL query like req.host.cont:"googleapis.com" OR req.host.cont:"clients6.google.com")
Step 4: Click Save to create the filter preset
Applying Filters
There are two ways to use your filter presets:
Method 1: Advanced Options Panel
In the HTTP History view (or any traffic table), click the Advanced button next to the HTTPQL search bar to open the advanced options panel on the right. From there, scroll to the Custom Presets section, select the filters you want to enable, and the traffic table will update instantly.
You can enable multiple filters at once. They work together using AND logic.
Method 2: Use in HTTPQL Queries
Type directly in the HTTPQL search bar: preset:gapi
Or combine with other queries: preset:gapi AND req.method.eq:"POST"
Saving Queries as Presets
Found yourself writing the same HTTPQL query repeatedly? Save it as a filter.
Quick Save Method:
Write your HTTPQL query in the search bar (e.g., req.path.regex:"/v[1-3]/")
Click the 💾 icon next to the search bar
A dialog appears with the query pre-filled
Enter a Name and Alias
Click Create
Your query is now a reusable filter preset.
Scopes vs Filters: When to Use Each
Use Scopes When...
Use Filters When...
Defining testing boundaries
Finding specific request types
Working with multiple domains
Hiding noise (images, CSS)
Setting up a new project
Analysing traffic patterns
Staying within authorisation
Searching by any criteria
Scopes and Filters work together to keep your testing organised and efficient. Scopes define WHERE you're testing, and Filters define WHAT you're looking at. Master both, and you'll navigate thousands of requests effortlessly.
Answer the questions below
Which wildcard matches ALL subdomains of example.com?
Which panel do you use to enable or disable filter presets in HTTP History?
One of the most powerful features in Caido is the ability to intercept traffic. Interception lets you pause requests and responses mid-flight, inspect them, modify them, and then decide whether to send them forward or drop them entirely. This is essential for testing authentication, bypassing client-side checks, and manipulating application behaviour.
What is Interception?
When you intercept traffic, Caido acts like a gatekeeper between your browser and the web server. Every request your browser sends, and every response the server sends back, stops at Caido first. You can then:
View the full request/response - See headers, body, parameters
Forward it - Send the modified (or original) traffic to its destination
Drop it - Delete the traffic so it never reaches its destination
This gives you complete control over the communication between the browser and the server.
Enabling Interception
Step 1: Navigate to Intercept
Click the Intercept tab in the sidebar (under the Proxy section).
Step 2: Enable Queuing Mode
At the top bar of the interface, you'll see the >> Forwarding button. This means traffic is flowing through Caido without stopping. Click it to switch to || Queuing mode.
Now Caido intercepts all traffic. Requests, responses, and WebSocket messages will queue up waiting for your action.
Choosing What to Intercept
By default, Caido doesn't intercept everything - you need to tell it what to capture.
At the top of the Intercept interface, you'll see three checkboxes:
Requests - Intercept HTTP requests before they reach the server
Responses - Intercept HTTP responses before they reach your browser
Websockets - Intercept WebSocket messages
Check the boxes for the traffic types you want to intercept. You can enable one, two, or all three simultaneously.
TIP
Start by intercepting requests only. Intercepting Responses and WebSockets can create a lot of traffic to manage.
Intercepted Traffic Queue
Once interception is active, traffic starts queuing up. The Intercept interface has three tabs:
Requests - Queued HTTP requests
Responses - Queued HTTP responses
Websockets - Queued WebSocket messages
Click a tab to see its queued traffic. Click a row in the table to view it in the panes below. Here's how the interface works:
Step 1: Control Traffic Flow. The || Queuing button at the top controls whether traffic is being intercepted. Click it to toggle between Queuing mode (intercept active) and Forwarding mode (traffic flows normally).
Step 2: Filter What You See. Use the HTTPQL search bar to filter which requests appear in the queue. For example, type req.method.eq:"POST" to see only POST requests.
Step 3: Choose What to Intercept. The checkboxes let you select which traffic types to intercept: Requests, Responses, or Websockets. Check the boxes for what you want to capture.
Step 4: Select a Request. The request table shows all queued traffic. Click any row to view its details in the panes below.
Step 5: View and Take Action. The bottom panes display the selected request and its response. Each pane has Drop and Forward buttons, allowing you to either delete the traffic or send it to its destination.
Actions: Forward, Drop, or Modify
Once you've intercepted traffic, you have three options:
Forward
Click the red Forward button to send the traffic to its destination. If you've modified the request, the modified version is sent. If you haven't made any changes, the original traffic is forwarded.
Drop
Click the Drop button to delete the traffic. The request never reaches the server, or the response never reaches your browser. This is useful for testing how applications handle missing requests or blocked responses.
Modify
Click inside the request or response pane to edit it directly. You can:
Change header values
Modify POST parameters
Add or remove cookies
Edit the request body
Change the HTTP method
After making the modifications, click Forward to send your changes.
TIP
If you make a mistake, click the undo button (↶) to restore the traffic to its original state.
Filtering Intercepted Traffic
Intercepting everything can get overwhelming fast. Caido lets you filter what gets intercepted.
Filter by Scope
At the top of the Intercept interface, use the Scope dropdown to select an active scope. Only traffic matching your scope will be intercepted.
Filter with HTTPQL
Use the HTTPQL query bar to filter even further. For example:
Only intercept POST requests: req.method.eq:"POST"
Only intercept API calls: req.path.cont:"api"
Only intercept a specific host: req.host.eq:"example.com"
The queue table updates to show only matching traffic.
Disabling Interception
When you're done intercepting, disable queuing mode.
Option 1: Disable All Interception
Click the || Queuing button to switch back to >> Forwarding. All traffic flows normally again.
Option 2: Disable Specific Traffic Types
Uncheck the Requests, Responses, or Websockets checkboxes to stop intercepting that traffic type while keeping others active.
Interception is the heart of manual web application testing. Master it, and you'll be able to test applications in ways developers never intended.
Answer the questions below
Which button sends intercepted traffic to its destination?
Can you intercept WebSocket messages in Caido? (yea/nay)
After intercepting and analysing traffic, you'll often need to resend requests with modifications to test how the application responds. This is where Replay comes in - Caido's manual testing workspace for sending requests repeatedly with different parameters, headers, or body content.
What is Replay?
Replay is a dedicated interface for manual request testing. Unlike Intercept (which catches traffic in real time), Replay lets you work with saved requests at your own pace. With Replay, you can:
Modify requests - Change any part of the request before sending
Resend repeatedly - Send the same request hundreds of times
Compare responses - See how different modifications affect the server's response
Organise your work - Group related requests into Collections
This is essential for testing authentication bypasses, privilege escalation, parameter tampering, and other vulnerabilities that require manual manipulation.
Sending Requests to Replay
You can send any request from anywhere in Caido to the Replay interface.
Method 1: Right-Click
You can send any request from History, Intercept, Sitemap, or Search to Replay using this method:
Step 1: Right-click on a request in HTTP History, Intercept, Sitemap, or Search
Step 2: Hover over "Send to Replay" in the context menu
Step 3: Select a Collection from the submenu (e.g., "Default Collection") or click "+ Create New Collection" to make a new one
Method 2: Keyboard Shortcut
Click on a request and press Ctrl+R (Windows/) or Cmd+R (Mac). This instantly sends the request to Replay in the Default Collection.
Replay Collections: Organising Your Work
Collections are groups that hold multiple requests. Think of them as folders for organising your testing. Why use Collections?
Group by vulnerability type - " Injection", "", "Auth Bypass"
Group by endpoint - " Tests", "Login Flow", "Payment Processing"
Group by testing phase - "Initial Recon", "Exploitation", "Post-Exploitation"
Creating a Collection
Step 1: Navigate to the Replay tab in the sidebar
Step 2: Click the dropdown arrow next to the + New Session button and select New collection
Step 3: Name your collection (e.g., "Vulns", "API Tests")
Your new collection appears in the left sidebar under "Default Collection".
Moving Requests Between Collections
Already have requests in one collection but want to move them?
Step 1: Right-click on a session tab at the top
Step 2: Select Move
Step 3: Choose the destination collection from the menu
The Replay Interface
When you open a session in Replay, the interface is divided into key areas:
Session Tabs (top) - Each open request appears as a tab. Click a tab to switch between requests
Request Pane (left) - The full HTTP request. Click inside to edit any part of it
Response Pane (right) - The server's response after you click Send
Send Button (centre) - Click to resend the request to the server
Collections Sidebar (left) - Shows all your collections and saved sessions
Modifying and Resending Requests
Click inside the Request pane to make changes. You can modify:
Parameters - Change query string or POST parameters
HTTP Method - Change GET to POST, PUT to DELETE, etc.
Request Body - Edit , , form data
After making your changes, click the red Send button. The server processes your modified request, and the response appears in the Response pane. You can send the same request as many times as you want, making different modifications each time to test the application's behaviour.
Managing Open Sessions
Working with multiple requests? Replay gives you powerful tab management. Right-click on any session tab to see options:
Rename - Give the session a descriptive name
Move - Move to a different collection
Close - Close this tab
Close Others - Close all tabs except this one
Close to the Left - Close all tabs to the left
Close to the Right - Close all tabs to the right
Close All - Close all open tabs
IMPORTANT
Closing a tab doesn't delete the request. The session is still saved in its Collection in the left sidebar. Click it to reopen anytime.
Session History: Track Your Testing
Every request you send from Replay is tracked in the session's history. Click the History dropdown at the top centre of the interface. The History panel shows:
Method - HTTP method used
Host - Target server
Path - Request path
Status - Response status code
Timestamp - When the request was sent
Use the search bar to quickly find specific requests.
This feature is incredibly useful for:
Comparing attempts - See which parameter value caused a different response
Tracking progress - Review what you've already tested
Revisiting responses - Click any history entry to view that request/response again
Replay is your manual testing workbench. While Intercept lets you catch traffic in real time, Replay gives you a controlled environment to methodically test requests, organise your findings, and track your testing history. Master both, and you'll have complete control over your web application testing workflow.
Answer the questions below
What is the name of the feature that holds multiple requests in Replay for organisation?
Does closing a session tab delete the request? (yea/nay)
Set up your virtual environment
To successfully complete this room, you'll need to set up your virtual environment. This involves starting both your AttackBox (if you're not using your VPN) and Lab Machines, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Attacker machine
Status:Off
Lab machine
Status:Off
You've learned the fundamentals of Caido - from capturing traffic to filtering with HTTPQL, intercepting requests, and replaying them. Now it's time to put everything together in a hands-on challenge.
The Challenge
In this task, you'll analyse traffic to find a hidden flag. The flag follows this format: FLAG{...} with random characters inside the curly braces.
Lab Setup
You can access the web app at MACHINE_IP in your AttackBox. The web app has a button titled "Start Searching". When you click it, the application will send hundreds of requests through your Caido . Your job is to find the flag hidden somewhere in the responses.
Hint: Use HTTPQL to filter responses containing a specific value. If you get stuck, the web app has a Show Hint button that points you in the right direction.
Answer the questions below
What is the flag?
Congratulations on completing the Caido Basics room! You now have a solid understanding of Caido's interface, core features, and testing workflow. These skills will be essential as you continue your journey in web application security testing.
What You've Learned
Setting up Caido and configuring /HTTPS interception
Navigating the interface and customising your workspace
Writing HTTPQL queries to filter traffic like a pro
Using Scopes and Filters to stay organised
Intercepting and modifying requests in real time
Replaying requests with Collections and tracking your testing history
These are the building blocks of professional web application testing. Whether you're doing bug bounty hunting, penetration testing, or security research, you now have the foundation to analyse and manipulate web traffic efficiently.
Beyond the Basics
Caido offers additional powerful features for advanced testing:
Automate - Run automated attacks with custom payloads
Workflows - Build custom automation chains
Match & Replace - Automatically modify traffic based on rules
Continue exploring Caido's capabilities and experiment with our next room. You can visit the room Caido: Basic Tools to learn more about Caido's functionality. The more you practice, the more proficient you'll become.
Happy hacking!
Answer the questions below
I understand the fundamentals of using Caido!
Ready to learn Cyber Security?
TryHackMe provides free online cyber security training to secure jobs & upskill through a fun, interactive learning environment.