Cloudflare integration with Snapsec AIM
The Cloudflare integration allows AIM to automatically discover and sync DNS records, subdomains, IP addresses, and related metadata from your Cloudflare-managed zones. This enables continuous asset discovery, real-time updates, and accurate inventory management without manual uploads.Prerequisites
Before connecting Cloudflare to Snapsec AIM, ensure you have:- A Cloudflare account with access to at least one zone.
- A Cloudflare API Token with required permissions.
- Zone access level:
- Zone → Read
- DNS → Read
- (Optional) Account → Read for additional metadata.
Create a Cloudflare API Token
- Log in to Cloudflare Dashboard.
- Navigate to My Profile → API Tokens.
- Click Create Token.
- Choose Read permissions template or create a custom token.
- Required permissions:
Zone: ReadDNS: Read- (Optional)
Account: Read
- Select the zones you want AIM to sync.
- Create and copy the token.
⚠️ Store this token securely. It will be used only inside Snapsec AIM.
Connecting Cloudflare in Snapsec AIM
- Go to AIM → Integrations.
- Locate Cloudflare and click Install.
- Enter the required fields:
- Email (Cloudflare account email)
- API Token
- Click Install or Connect to verify the connection.
What AIM imports from Cloudflare
Once connected, AIM automatically fetches:- All DNS records (A, AAAA, CNAME, TXT, MX, NS, etc.)
- Associated subdomains
- Cloudflare-provided metadata
- Linked IP addresses
- Exposure classification
- Zones and hosting attributes
Sync Behavior
Automatic Sync
AIM periodically:- Refreshes DNS records
- Detects new subdomains
- Identifies removed or inactive entries
- Updates risk and exposure calculations
Manual Sync
You can trigger a refresh from the Active Adapters menu.Troubleshooting
- Invalid token → Regenerate your token with correct permissions.
- No zones appearing → Ensure the token is scoped to specific zones.
- Partial data → Check DNS permissions and verify zone access.
Next Steps
View DNS Catalog
Explore all DNS records and subdomains imported from Cloudflare.