Skip to content

Target Intelligence Schema

The target intelligence database is a SQLite store that tracks all discovered entities across all sensor platforms (nmap, Marauder, Flipper Zero, PortaPack, aircrack-ng, bettercap). It lives at /sandbox/knowledge/targets.db.

All tables use first_seen / last_seen timestamps for temporal tracking. Upsert operations update last_seen on conflict, preserving first_seen.

Tables

scan_sessions

Temporal grouping for every scan/capture operation.

ColumnTypeDescription
idINTEGER PKAuto-incrementing session ID
engagementTEXTEngagement name
toolTEXT NOT NULLTool that performed the scan
actionTEXT NOT NULLTool action (e.g. nmap_scan, scan_aps)
started_atTEXT NOT NULLISO 8601 timestamp
ended_atTEXTISO 8601 timestamp (NULL while running)
raw_outputTEXTRaw tool output
notesTEXTFree-form notes

hosts

Central entity -- anything with an IP or MAC address.

ColumnTypeDescription
idINTEGER PKAuto-incrementing host ID
ipTEXTIPv4 address
macTEXTMAC address
hostnameTEXTResolved hostname
osTEXTDetected operating system
vendorTEXTNIC vendor (from OUI lookup)
device_typeTEXTDevice classification (default unknown)
tagsTEXTJSON array of tags
first_seenTEXT NOT NULLFirst discovery timestamp
last_seenTEXT NOT NULLLast activity timestamp
scan_session_idINTEGER FKReference to scan_sessions
notesTEXTFree-form notes

Unique constraint: (ip, mac)

Indexes: ip, mac, last_seen

ports

Services discovered on hosts.

ColumnTypeDescription
idINTEGER PKAuto-incrementing port ID
host_idINTEGER FK NOT NULLReference to hosts (CASCADE delete)
portINTEGER NOT NULLPort number
protocolTEXT NOT NULLProtocol (default tcp)
stateTEXT NOT NULLPort state (default open)
serviceTEXTService name
bannerTEXTService banner / version string
first_seenTEXT NOT NULLFirst discovery timestamp
last_seenTEXT NOT NULLLast activity timestamp
scan_session_idINTEGER FKReference to scan_sessions

Unique constraint: (host_id, port, protocol)

wifi_networks

Access points discovered by Marauder, aircrack-ng, or bettercap.

ColumnTypeDescription
idINTEGER PKAuto-incrementing network ID
bssidTEXT NOT NULLAP MAC address
ssidTEXTNetwork name
channelINTEGERWiFi channel
rssiINTEGERSignal strength (dBm)
encryptionTEXTEncryption type (WPA2, WPA3, Open, etc.)
wpsINTEGERWPS enabled flag (default 0)
host_idINTEGER FKReference to hosts
first_seenTEXT NOT NULLFirst discovery timestamp
last_seenTEXT NOT NULLLast activity timestamp
scan_session_idINTEGER FKReference to scan_sessions
notesTEXTFree-form notes

Unique constraint: (bssid)

wifi_stations

Client devices associated (or probing) to APs.

ColumnTypeDescription
idINTEGER PKAuto-incrementing station ID
macTEXT NOT NULLStation MAC address
network_idINTEGER FKReference to wifi_networks
rssiINTEGERSignal strength (dBm)
probed_ssidsTEXTJSON array of probed SSIDs
host_idINTEGER FKReference to hosts
first_seenTEXT NOT NULLFirst discovery timestamp
last_seenTEXT NOT NULLLast activity timestamp
scan_session_idINTEGER FKReference to scan_sessions

Unique constraint: (mac)

rf_signals

Captures from PortaPack and Flipper Zero Sub-GHz.

ColumnTypeDescription
idINTEGER PKAuto-incrementing signal ID
frequency_hzINTEGER NOT NULLFrequency in Hz
modulationTEXTModulation type (ASK, FSK, etc.)
protocolTEXTDecoded protocol name
data_hexTEXTRaw signal data in hex
signal_strengthINTEGERSignal strength
source_deviceTEXTDevice that captured the signal
capture_fileTEXTPath to capture file
decoded_textTEXTHuman-readable decoded content
first_seenTEXT NOT NULLFirst capture timestamp
last_seenTEXT NOT NULLLast capture timestamp
scan_session_idINTEGER FKReference to scan_sessions
notesTEXTFree-form notes

Indexes: frequency_hz, protocol

ble_devices

BLE devices discovered by Flipper Zero or Marauder.

ColumnTypeDescription
idINTEGER PKAuto-incrementing device ID
macTEXT NOT NULLBLE MAC address
nameTEXTAdvertised device name
address_typeTEXTAddress type (default public)
rssiINTEGERSignal strength (dBm)
servicesTEXTJSON array of advertised services
manufacturer_dataTEXTManufacturer-specific data
host_idINTEGER FKReference to hosts
first_seenTEXT NOT NULLFirst discovery timestamp
last_seenTEXT NOT NULLLast discovery timestamp
scan_session_idINTEGER FKReference to scan_sessions

Unique constraint: (mac)

rfid_nfc_tags

Tags read by Flipper Zero.

ColumnTypeDescription
idINTEGER PKAuto-incrementing tag ID
tag_typeTEXT NOT NULLTag type (e.g. EM4100, MIFARE Classic, NTAG215)
uidTEXT NOT NULLTag UID
protocolTEXTProtocol details
atqaTEXTNFC ATQA value
sakTEXTNFC SAK value
data_hexTEXTRaw tag data in hex
labelTEXTHuman-readable label
first_seenTEXT NOT NULLFirst read timestamp
last_seenTEXT NOT NULLLast read timestamp
scan_session_idINTEGER FKReference to scan_sessions
notesTEXTFree-form notes

Unique constraint: (tag_type, uid)

credentials

Harvested credentials from any source.

ColumnTypeDescription
idINTEGER PKAuto-incrementing credential ID
usernameTEXTUsername
passwordTEXTPassword or hash value
hash_typeTEXTHash algorithm (e.g. WPA-PMKID, NTLM, bcrypt)
crackedINTEGERWhether the hash was cracked (default 0)
sourceTEXTWhere the credential was captured from
host_idINTEGER FKReference to hosts
wifi_network_idINTEGER FKReference to wifi_networks
first_seenTEXT NOT NULLCapture timestamp
scan_session_idINTEGER FKReference to scan_sessions
notesTEXTFree-form notes

Part of the protoLabs autonomous development studio.