Skip to content

Integrations

These pages show how to keep a firewall, an IDS or a SIEM up to date with one of our lists. They all work the same way: once a day, get the newest list and load it.

Before you start

Pick a list. Each list answers a different question, and we can't tell you which one fits your network. If you're not sure, start with persistent: addresses that have been attacking for a long time, and steadily. It changes little from day to day. The Lists page describes them all.

Run once a day, after 03:30 UTC. A day's lists are ready by 03:00 UTC. Running more often gets you nothing new and costs credits. Cron uses your server's time zone, so convert 03:30 UTC to your local time.

Check what it costs. A download costs one credit per 100 addresses. These are the sizes on 10 October 2026. They change every day.

List Addresses Credits a day A month of daily downloads
all-last-day 20,842 209 about 6,300
all-last-7-days 68,319 684 about 20,500
persistent 17,868 179 about 5,400
recent-heavy 10,594 106 about 3,200
recently-active 500 5 about 150
likely-tomorrow 13,787 138 about 4,100
top-contributors 10,666 107 about 3,200

Getting only the changes costs much less for two lists. In September 2026, persistent changed by about 310 addresses a day and top-contributors by about 370, so about 4 credits a day each. With the weekly whole download that aip-sync adds, persistent comes to about 900 credits a month instead of 5,400. The other lists change almost completely every day, so for them, download the whole list.

The free Community plan has 5,000 credits a month. It gets persistent and recent-heavy, the top 5,000 addresses of each, so a download costs at most 50 credits. Its lists are 7 days old. See Plans and limits.

aip-sync

aip-sync is a small script we provide. It downloads a list, keeps it on disk, and writes the addresses to block to a file, one per line. Every guide here loads that file into a tool. It needs Python 3.8 or later and nothing else.

What it does

  • It keeps an address after it leaves the list. Each list keeps an address for 7 or 14 days after its last day on it, as the Lists page shows. That's how expires_at is worked out. A plain download only has today's list, so an address would vanish from your firewall the day it leaves the list.
  • It can get only the changes. With --changes it asks for what changed since the last run, instead of the whole list. It downloads the whole list on the first run, once a week to catch any list we corrected after you got it, and whenever changes alone could miss something.
  • It never leaves you with an empty file. If a run fails, the files from the last good run stay as they were, so you keep blocking what you blocked before. It then prints the reason and exits with status 1.
  • It never prints your key.

Install it

sudo curl -fsSo /usr/local/bin/aip-sync \
  https://api.intelligence.stratosphereips.org/guide/integrations/aip-sync.py
sudo chmod 755 /usr/local/bin/aip-sync
aip-sync --version

Read it before you run it. It's about 300 lines.

Store your key

The script reads your API key from /etc/aip-sync/key. Create that file so only root can read it. Paste your key, press Enter, then Ctrl-D:

sudo install -d -m 700 /etc/aip-sync
sudo sh -c 'umask 077 && cat > /etc/aip-sync/key'

Run it

sudo aip-sync --list persistent --out /var/lib/aip-sync/persistent.txt --changes
persistent 2026-10-10: 17868 to block (17868 new, 0 dropped). downloaded whole, 17868 on the list.
Option What it does
--list The list id, such as persistent.
--out The file to write: the addresses to block, one per line, IPv4 first.
--out4, --out6 Write only the IPv4, or only the IPv6, addresses to a file. For tools that keep the two apart.
--csv-out Also write ip,expires_at, for tools that can use the date. It's the date for this list.
--changes Get only what changed, when it can. Worth it for persistent and top-contributors.
--key-file Read the key from another file. Without one, it uses /etc/aip-sync/key, or the AIP_KEY variable if that file doesn't exist.
--state-dir Where it keeps what it knows about the list. Default: /var/lib/aip-sync.
--quiet Print only errors. Useful in cron.

Each list needs its own --out file. Running it for several lists is fine, and each keeps its own state.

When runs are missed

If the script hasn't run for a few days, it can't know on which of those days an address left the list. It keeps the address as if it left on the last one. So after missed runs, an address can stay on your blocklist a few days longer than it should, never shorter. Daily runs are exact.

The API's expires_at counts every list that has the address, so it can be later than the date aip-sync uses. aip-sync follows only the list you chose.

Today every address is IPv4. If IPv6 addresses appear, they come after the IPv4 ones in the --out file. The firewall guides load only IPv4, and say where to add IPv6.

Without the script

If you only want today's list, a download is enough. curl reads the key from its input, so it never shows in the list of running programs:

printf 'Authorization: Bearer %s\n' "$AIP_KEY" | curl -fsS -H @- \
  "https://api.intelligence.stratosphereips.org/v1/lists/persistent?format=csv" \
  -o persistent.csv.new &&
  tail -n +2 persistent.csv.new | cut -d, -f1 > persistent.txt.new &&
  mv persistent.txt.new persistent.txt

tail drops the header row, and cut keeps the first column, the address. The file is only replaced when the download worked. An address leaves your blocklist the day it leaves the list, whatever its expires_at says.