l-teles/detectify
steampipe plugin install l-teles/detectify

Table: detectify_port

This table contains information about open ports and their associated assets monitored by Detectify.

The token_v3 argument is required to use this table, meaning you need to create an API key for v3 on Detectify.

Examples

List all policies

select
domain_name,
ip_address,
port,
status
from
detectify_port;

List the assets that currently have SSH port (22) open

select
domain_name,
ip_address,
port,
status
from
detectify_port
where
port = 22;

Count number of open ports per asset (domain name)

select
count(*) as open_ports,
domain_name
from
detectify_port
where
status not in('CLOSED', 'FILTERED')
group by
domain_name;

Schema for detectify_port

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
asset_idtextID of the asset.
disappeared_attimestamp with time zoneTimestamp when the port disappeared.
domain_nametextDomain name associated with the port.
first_seen_attimestamp with time zoneTimestamp when the port was first seen.
idtextUnique ID of the port.
ip_addresstextIP address.
portbigintPort number.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
statustextStatus of the port.
team_idtextID of the team.