sudo cscli collections install crowdsecurity/magentoInstalls 4 parsers and 4 scenarios.
View Magento →sudo cscli parsers install crowdsecurity/geoip-enrichThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
filter: |let ipv6Check = IsIPV6(evt.Meta.source_ip);"source_ip" in evt.Meta &&(not ipv6Check &¬ (IpInRange(evt.Meta.source_ip, "127.0.0.0/8") || IpInRange(evt.Meta.source_ip, "192.168.0.0/16") || IpInRange(evt.Meta.source_ip, "172.16.0.0/12") || IpInRange(evt.Meta.source_ip, "10.0.0.0/8"))) ||(ipv6Check &¬ (IpInRange(evt.Meta.source_ip, "::1/128") || IpInRange(evt.Meta.source_ip, "fd00::/8") || IpInRange(evt.Meta.source_ip, "fc00::/7")))name: crowdsecurity/geoip-enrichdescription: "Populate event with geoloc info : as, country, coords, source range."data:- source_url: https://hub-data.crowdsec.net/mmdb_update/GeoLite2-City.mmdbdest_file: GeoLite2-City.mmdb- source_url: https://hub-data.crowdsec.net/mmdb_update/GeoLite2-ASN.mmdbdest_file: GeoLite2-ASN.mmdbstatics:- method: GeoIpCityexpression: evt.Meta.source_ip- meta: IsoCodeexpression: evt.Enriched.IsoCode- meta: IsInEUexpression: evt.Enriched.IsInEU- meta: GeoCoordsexpression: evt.Enriched.GeoCoords- method: GeoIpASNexpression: evt.Meta.source_ip- meta: ASNNumberexpression: evt.Enriched.ASNNumber- meta: ASNOrgexpression: evt.Enriched.ASNOrg- method: IpToRangeexpression: evt.Meta.source_ip- meta: SourceRangeexpression: evt.Enriched.SourceRange
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.
The GeoIP module relies on geolite database to provide enrichment on source ip.
The following informations will be added to the event :
Meta.IsoCode : two-letters country codeMeta.IsInEU : a boolean indicating if IP is in EUMeta.GeoCoords : latitude & longitude of IPMeta.ASNNumber : Autonomous System NumberMeta.ASNOrg : Autonomous System NameMeta.SourceRange : The public range to which the IP belongsThis configuration includes GeoLite2 data created by MaxMind available from https://www.maxmind.com, it includes two data files: