Skip to content
DuckDB community extension

oast

Validate, decode, and extract OAST (Out-of-Band Application Security Testing) domains in SQL

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL oast FROM community;
LOAD oast FROM community;

Try it in a temporary SQL session with oast already loaded. Queries run in this tab; examples using files or services need their own setup.

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

Check if a domain is a valid OAST callback

SQL
-- Check if a domain is a valid OAST callback
SELECT oast_validate('c58bduhe008dovpvhvugcfemp9yyyyyyn.oast.pro') AS is_oast;
-- Decode OAST metadata (timestamp, machine ID, campaign)
SELECT oast_struct('c58bduhe008dovpvhvugcfemp9yyyyyyn.oast.pro').*;
-- Extract OAST domains from arbitrary text
SELECT oast_extract('GET /c58bduhe008dovpvhvugcfemp9yyyyyyn.oast.pro HTTP/1.1');

Provided by hrbrmstr. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

The oast extension provides functions for working with OAST (Out-of-Band Application Security Testing) domains directly in SQL. OAST domains are used by security testing tools like ProjectDiscovery Interactsh to detect out-of-band interactions during vulnerability scanning.

Functions include validation (oast_validate), metadata decoding (oast_struct, oast_decode_json), domain extraction from text (oast_extract, oast_extract_decode), and convenience macros for field access (oast_campaign, oast_timestamp, oast_ksort, oast_machine_id).

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
hrbrmstr/duckdb-oast
License
MIT
Maintainers
hrbrmstr
Written in
C
Build source
61164985f09e
Build definition
Community descriptor