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, statusfrom detectify_port;
List the assets that currently have SSH port (22) open
select domain_name, ip_address, port, statusfrom detectify_portwhere port = 22;
Count number of open ports per asset (domain name)
select count(*) as open_ports, domain_namefrom detectify_portwhere status not in('CLOSED', 'FILTERED')group by domain_name;
Schema for detectify_port
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
asset_id | text | ID of the asset. | |
disappeared_at | timestamp with time zone | Timestamp when the port disappeared. | |
domain_name | text | Domain name associated with the port. | |
first_seen_at | timestamp with time zone | Timestamp when the port was first seen. | |
id | text | Unique ID of the port. | |
ip_address | text | IP address. | |
port | bigint | Port number. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
status | text | Status of the port. | |
team_id | text | ID of the team. |