For how long is an IP reputation valid? (same user)

a curiosity, but given that many do use reputation as a metric …

especially now when it could be that malicious entities might grab a block to abuse for s short period of time, return it, and grab another … which has probably been going on for a while by now, and probably why some blocklists(*) are willing to block the entire ASN or datacenter for supporting such behavior.

(*)uceprotect.net for instance, and I think spamhaus

Opinions differ on aging, but I would not go much more than 30 days for IP blocks.

Certain ASNs deserve to be universally banned. Unfortunately, most firewalls do not allow this.

Take a look at how MISP discusses IOC decay:

I think there are some clever things you can take away from this like having an IOC decay automatically after 30 days as is what Taggart recommends for IPs (and me too) but then you can bump up that decay window periodically if the same IP is found in a different attack case.

1 Like

What I’ve been doing on a simple Host system (not router or perimiter of any sort), outside of research curiosity loggings, is to rely upon Daniel Cid’s OSSEC HIDS (Host Intrusion Detection System) which reads system/syslog files and applys custom rules to detect actionable behavior. Rules can be nested such that n occurrences of a particular rule (5xx SMTP response) in a timespan triggers a blocking rule which adds the IP to a firewall block/DROP chain/set/rule — with an expiry timespan, after which ossec removes the block.

If the same IP triggers the same blocking rule again, the timespan of the block is larger/longer (configurable). The blocking set of rules also expire and remains pretty fresh. From time to time I take a look at the IPs with the most triggers of a blocking rule, and move them into another blocking set/chain (which I log) as semi-permanently unworthy and taking the load off the ossec database.

Again from time to time I review that second permanent set looking to consolidate a /24 to block and not bother even logging it; and for single IPs which don’t get the message and just keep hammering away and spoiling the logs so I move them into a DROP set which doesn’t bother logging. At least they aren’t journal or disk logging. The kernel/netfilter can count them if directed by the nft configuration.

Again, it’s not my profession. I just strive to be a responsible sysadmin by wondering how things work.