crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
8.89k stars 461 forks source link

Feature request: Using IPinfo IP to ASN database #3282

Open abdullahdevrel opened 2 days ago

abdullahdevrel commented 2 days ago

/kind enhancement

What would you like to be added?

For feature request please pick a kind label by removing <!-- --> that wrap the example lines below

/kind enhancement Feature is available but this extends or adds extra functionality

I am requesting to add support for IPinfo's IP to ASN database to the project. The database has the following features:

Database schema

Field Name Example Data Type Description
start_ip 1.0.16.0 TEXT Starting IP address of an IP address range
end_ip 1.0.31.255 TEXT Ending IP address of an IP address range
asn AS2519 TEXT Autonomous System Number
as_name ARTERIA Networks Corporation TEXT Name of the AS (Autonomous System) organization
as_domain arteria-net.com TEXT Official domain or website of the AS organization

Documentation: https://ipinfo.io/developers/ip-to-asn-database

The database can be downloaded simply by accessing the storage URI with an access token.

curl -L https://ipinfo.io/data/free/asn.mmdb?token=<YOUR_TOKEN> -o asn.mmdb

Let me know what you think. Thanks!

Why is this needed?

github-actions[bot] commented 2 days ago

@abdullahdevrel: Thanks for opening an issue, it is currently awaiting triage.

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
github-actions[bot] commented 2 days ago

@abdullahdevrel: There are no 'kind' label on this issue. You need a 'kind' label to start the triage process.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
LaurenceJJones commented 2 days ago

Hey 👋🏻

Thank you for opening a feature request, as it currently stands the Geolite2 stuff is pretty much hardcoded into the CrowdSec binary so does not leave room for us to have this flexibility to swap out to another provider. We will keep this in mind if we revisit this part of the CrowdSec.

If anyone is reading this and would like to see this investigate by the team leave a 👍🏻 above.