AsterionDocumentation v0.4.1

Targets, hosts and services

Tables of the area Targets, hosts and services and their relations
Targets, hosts and services: tables and foreign keys. Dashed lines lead to tables of other areas.

groups

Tree of groups per tenant (parent_id). Hosts and targets can be placed in a group; plans can target a group with its subgroups.

8 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
tenant_idbigint(20) unsignedtenants on delete cascade
parent_idbigint(20) unsignedyesgroups on delete set null
namevarchar(255)
descriptiontextyes
positionint(11)0
created_attimestampyes
updated_attimestampyes

Indexes: parent_id · tenant_id

targets

What a user entered: IPv4, IPv6, hostname, CIDR, range or domain. A single-host target points to its host.

11 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
tenant_idbigint(20) unsignedtenants on delete cascade
group_idbigint(20) unsignedyesgroups on delete set null
host_idbigint(20) unsignedyeshosts on delete set null
typevarchar(16)
valuevarchar(255)
labelvarchar(255)yes
enabledtinyint(1)1
created_bybigint(20) unsignedyesusers on delete set null
created_attimestampyes
updated_attimestampyes

Indexes: created_by · group_id · host_id · tenant_id, type, value (unique)

hosts

One machine with all its addresses. Status, open service count, OS guess, last scan, manual location and address.

17 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
tenant_idbigint(20) unsignedtenants on delete cascade
group_idbigint(20) unsignedyesgroups on delete set null
namevarchar(255)
descriptiontextyes
os_guessvarchar(255)yes
statusvarchar(16)unknown
auto_mergetinyint(1)1
open_services_countint(10) unsigned0
first_seen_attimestampyes
last_seen_attimestampyes
last_scanned_attimestampyes
created_attimestampyes
updated_attimestampyes
latitudedecimal(9,6)yes
longitudedecimal(9,6)yes
addressvarchar(300)yes

Indexes: group_id · tenant_id, group_id

host_addresses

IPv4, IPv6 addresses and hostnames of a host with their source (manual, dns, ptr, cert, …) and the PTR name of an IP.

10 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
host_idbigint(20) unsignedhosts on delete cascade
typevarchar(16)
valuevarchar(255)
ptrvarchar(255)yes
sourcevarchar(16)manual
first_seen_attimestampyes
last_seen_attimestampyes
created_attimestampyes
updated_attimestampyes

Indexes: host_id, type, value (unique) · value

host_fingerprints

SSH host keys and TLS certificate fingerprints seen on a host. SSH keys merge hosts; TLS fingerprints never do.

7 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
host_idbigint(20) unsignedhosts on delete cascade
typevarchar(32)
valuevarchar(255)
labelvarchar(255)yes
first_seen_attimestampyes
last_seen_attimestampyes

Indexes: host_id, type, value (unique) · type, value

host_paths

Latest traceroute from each satellite to each address of a host: the hops, whether the target was reached, round-trip time and the last router.

11 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
host_idbigint(20) unsignedhosts on delete cascade
satellite_idbigint(20) unsignedsatellites on delete cascade
targetvarchar(255)
hopslongtext
hop_countsmallint(5) unsigned0
reachedtinyint(1)0
rtt_msdoubleyes
gatewayvarchar(45)yes
created_attimestampcurrent_timestamp()
last_seen_attimestampyes

Indexes: host_id, satellite_id, created_at · satellite_id, gateway

services

A port/protocol of a host with what runs there (nmap name, product, version, CPE, identified by a probe), open or closed, first and last seen.

17 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
host_idbigint(20) unsignedhosts on delete cascade
protocolvarchar(8)
portint(10) unsigned
namevarchar(255)yes
identifiedvarchar(16)yes
productvarchar(255)yes
versionvarchar(255)yes
extra_infovarchar(255)yes
tunnelvarchar(16)yes
cpelongtextyes
is_opentinyint(1)0
first_seen_attimestampyes
last_seen_attimestampyes
last_change_attimestampyes
created_attimestampyes
updated_attimestampyes

Indexes: host_id, protocol, port (unique)

service_observations

The same service as seen from one satellite on one address: state, missed scans (a port is closed after 2 misses), policy violation counter, scripts output.

16 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
service_idbigint(20) unsignedservices on delete cascade
satellite_idbigint(20) unsignedsatellites on delete cascade
addressvarchar(255)
statevarchar(16)
missed_scanssmallint(5) unsigned0
violation_scanssmallint(5) unsigned0
violation_run_idbigint(20) unsignedyes
productvarchar(255)yes
versionvarchar(255)yes
scriptslongtextyes
scan_run_idbigint(20) unsignedyesscan_runs on delete set null
first_seen_attimestampyes
last_seen_attimestampyes
created_attimestampyes
updated_attimestampyes

Indexes: satellite_id · scan_run_id · service_id, satellite_id, address (unique)

service_events

History: a service appeared, disappeared or changed its fingerprint, per satellite and address. Kept beyond the result retention.

9 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
tenant_idbigint(20) unsignedtenants on delete cascade
host_idbigint(20) unsignedhosts on delete cascade
service_idbigint(20) unsignedyesservices on delete cascade
satellite_idbigint(20) unsignedyessatellites on delete set null
addressvarchar(255)yes
eventvarchar(16)
detailslongtextyes
occurred_attimestamp

Indexes: host_id, occurred_at · satellite_id · service_id · tenant_id, occurred_at

service_versions

Every product/version seen on a service with its source (nmap, banner, HTTP header) and first/last seen — the software inventory.

7 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
service_idbigint(20) unsignedservices on delete cascade
productvarchar(255)
versionvarchar(255)
sourcevarchar(16)nmap
first_seen_attimestamp
last_seen_attimestamp

Indexes: service_id, product, version (unique)