SteampipeSteampipe Plugin

IP Geolocation for Steampipe: Enrich Your Log IPs with SQL

Join location, network owner, VPN, proxy, Tor, and threat data to the IP columns in your AWS CloudTrail, VPC flow log, and Microsoft Entra ID tables, in one SQL query.

Steampipe terminal querying IP threat data in SQL and returning a result row

Why Run IP Lookups Inside Steampipe

Steampipe turns cloud APIs and logs into SQL tables, and many of those tables already hold IP addresses: source_ip_address in CloudTrail events, src_addr in VPC flow logs, and ip_address in Microsoft Entra ID sign-ins.

The IPGeolocation.io plugin adds four tables keyed by IP. Join one of them on that column and every row gains its country, network owner, and VPN, proxy, Tor, and threat-score signals, fetched live at query time. The same tables run in the Steampipe CLI, in any Postgres through the foreign data wrapper, and in SQLite.

ipgeolocation_security
select ip, is_tor, is_vpn, threat_score
from ipgeolocation_security
where ip = '185.220.101.1';
+---------------+--------+--------+--------------+
| ip            | is_tor | is_vpn | threat_score |
+---------------+--------+--------+--------------+
| 185.220.101.1 | true   | false  | 95           |
+---------------+--------+--------+--------------+

Join IP Data With Your Other Steampipe Plugins

Install the AWS or Azure AD plugin alongside this one and enrich the IP addresses they return. Each query groups rows to distinct IPs first, so every address is looked up once.

Console sign-ins from VPN or Tor addresses

Find the past week's ConsoleLogin events that came through a VPN or Tor, or from an address with a high threat score. The AWS table needs your CloudTrail log group name, and the security columns need a paid plan.

AWS CloudTrail
with console_logins as (
  select source_ip_address as ip, count(*) as logins,
         string_agg(distinct username, ', ') as users
  from aws_cloudtrail_trail_event
  where log_group_name = 'aws-cloudtrail-logs'
    and timestamp >= now() - interval '7 days'
    and event_name = 'ConsoleLogin'
  group by source_ip_address
)
select c.ip, c.users, c.logins, g.country_name, g.is_vpn, g.is_tor, g.threat_score
from console_logins c
join ipgeolocation_ip g on g.ip = c.ip
where g.is_vpn or g.is_tor or g.threat_score >= 45
order by g.threat_score desc;
+---------------+-------------+--------+---------------+--------+--------+--------------+
| ip            | users       | logins | country_name  | is_vpn | is_tor | threat_score |
+---------------+-------------+--------+---------------+--------+--------+--------------+
| 185.220.101.1 | dana.k      | 3      | Germany       | false  | true   | 95           |
| 2.56.188.34   | build-admin | 1      | United States | true   | false  | 80           |
+---------------+-------------+--------+---------------+--------+--------+--------------+

Sample output: user names and counts are made up, and the IP data comes from live lookups on November 17, 2026. Log group names are examples; use your own.

Four Tables, One Plugin

Every table takes an IP in the WHERE clause or a join, and returns it as a row. The plugin documentation lists every column.

TableReturnsCreditsPlan
ipgeolocation_ipLocation, time zone, ASN and organization, and company, plus the security and abuse fields on paid plans, in one row4 per IP on paid plans, 1 on FreeFree and paid
ipgeolocation_securityVPN, proxy, Tor, relay, bot, spam, attacker, and cloud-provider flags with a 0 to 100 threat score2 per IPPaid
ipgeolocation_abuseThe registered abuse contact (name, emails, phone numbers, postal address) and CIDR route for an IP address, when contact data is available1 per IP that returns abuse contact dataPaid
ipgeolocation_asnASN, organization, type, RIR, and route counts, looked up by IP or AS number1 per lookupPaid
Quick Setup

Query IP Geolocation in Three Steps

You go from install to a working query in a couple of minutes. No credit card required to start.

Step 1

Install the plugin

Run the Steampipe install command for the IPGeolocation.io plugin. Steampipe pulls the binary for you, with no build step.

Start free and run your first query
Step 2

Add your API key

Paste your key into the plugin's .spc config file, or set the IPGEOLOCATION_API_KEY environment variable.

Step 3

Run a query

SELECT from any of the four tables with an IP in the WHERE clause, and the plugin returns it as a SQL row you can join and filter.

The full setup, including the Postgres and SQLite options, lives in the plugin documentation.

Who Uses It

Teams that already query their cloud and identity data in Steampipe add IP context to the same queries.

Cloud Security Teams Watching AWS Sign-ins

Flag CloudTrail console sign-ins that come through a VPN or Tor, or from a country your team never works from, and save the query as a scheduled check.

Cloud Security Teams Watching AWS Sign-ins

Flag CloudTrail console sign-ins that come through a VPN or Tor, or from a country your team never works from, and save the query as a scheduled check.

SOC Analysts Triaging Risky Sign-ins

Check which Microsoft Entra ID sign-ins used a VPN, proxy, or Tor, and pull the abuse contact for an address that needs reporting, in the same SQL session.

DevOps and SRE Teams Reviewing Rejected Traffic

See the countries and networks behind the traffic your VPC security groups reject, to tell scanners from a misconfigured partner.

Compliance and Audit Teams Documenting Access

Map sign-in IPs to country and network owner for an access review or a data-residency check, and export the query result as evidence.

Why IPGeolocation.io + Steampipe

Steampipe runs SQL against live APIs as if they were database tables. The IPGeolocation.io plugin turns IP geolocation, threat, ASN, and abuse data into four tables you can filter, join, and aggregate with the SQL you already write.

Four Tables, Live Data

Geolocation, security, abuse, and ASN data, fetched live from the API at query time rather than from a cached snapshot.

Geolocation without a pipeline

Resolve any IPv4 or IPv6 address to a location in one SELECT. No scripts, no JSON parsing, no pagination.

Runs Beyond the CLI

The same tables run in the Steampipe CLI, in any Postgres through the foreign data wrapper, and in SQLite.

Free and Open Source

The plugin is Apache 2.0 licensed and runs on the free plan, with 1,000 credits per day for geolocation, time zone, and basic ASN data. Full ASN details like routes, peers, and WHOIS are on paid plans.

Trusted by thousands of companies around the world

AT&T logo
Avast logo
Daraz logo
IATA logo
IKEA logo
NEC logo
Dulux logo
Nayatel logo

Steampipe Integration FAQs

The plugin is free and open source under Apache 2.0. It runs on the IPGeolocation.io free plan, which includes 1,000 credits per day covering geolocation, time zone, and basic ASN data. Security signals, company data, detailed ASN and abuse contacts are available on paid plans.

Yes. With the AWS or Azure AD plugin installed alongside this one, join on the IP column those tables already have: source_ip_address in aws_cloudtrail_trail_event, host(src_addr) in aws_vpc_flow_log_event, and ip_address in azuread_sign_in_report. The two AWS tables also need your log group name in the WHERE clause. Group the rows to distinct IPs first so each address is looked up only once.

For a list of IPs, credits are charged per valid IP, only on success. Group your rows to distinct IPs before the join, so each address is looked up once. The ipgeolocation_ip table requests include=*. A successful lookup costs 4 credits on a paid plan and 1 credit on Free. On a paid plan, ipgeolocation_security costs 2 credits per successful lookup, and ipgeolocation_abuse costs 1 per IP that returns abuse contact data. Selecting fewer columns does not reduce the charge (see the credits usage guide). For large or recurring enrichment, the downloadable IP databases query locally with no per-lookup cost. For very high volume, talk to us.

No. After installing the plugin and adding your API key, you work entirely in SQL, the same SELECT and JOIN you already write. The Steampipe Hub also ships 22 example queries you can copy and adapt for your own data.

Four tables. ipgeolocation_ip returns full enrichment, ipgeolocation_security returns VPN, proxy, Tor, and threat scores, ipgeolocation_abuse returns abuse contacts, and ipgeolocation_asn returns network and routing data. Each takes an IP address in the WHERE clause and returns it as a SQL row.

Yes. Every table accepts both IPv4 and IPv6 addresses in the WHERE clause and returns the same columns for each address type. You can mix address types across queries without changing anything. IPv6 works on every plan, including the free plan, with no separate configuration or endpoint.

Results come live from the IPGeolocation.io API at query time, not from a cached snapshot, and the underlying data is updated daily, fed by collection that runs 24/7. Read how our IP geolocation data is built for the full pipeline. On paid plans, each row also includes confidence and accuracy_radius fields, so you can filter results by how precise a location is.

Call Icon

Call Us

+1 (917) 724-2931

Location Icon

Address

JFreaks Software Solutions LLC
7345 W Sand Lake Rd, Ste 210, Office 5169, Orlando, FL 32819 United States

Request an Integration

Looking for an integration we don't support yet? Let us know and our team will evaluate and get back to you.

Integration with Your Favorite Apps

Unlock the potential of seamless connectivity with our integrations. Discover how our platform effortlessly connects with your favorite tools, third-party platforms, and developer libraries. Simplify your workflow, boost productivity, and open doors to new innovations.

CTA Illustration

Subscribe to Our Newsletter

Get the latest in geolocation tech, straight to your inbox.