Information Security News
It's Friday today, I'd like to talk about something else. Black (or white) lists are everywhere today. Many security tools implement a way to allow/deny accesses or actions on resources based on "lists" bsides the automated processing of data. The approach to implement them is quite different:
|White list||Deny everything by default and allow exceptions||Full control of all resources||Harder to manage
Can be frustrating for the user.
|Black list||Allow everything by default and deny exceptions||Easy to manage
Less impact on users
Only "known" resources are blocked
A classic example is applications allowed to users on endpoints in a corporate environment (Microsoft AppLocker works like this): You can allow all applications but block some or you can deny all applications but allow only approved ones.
When you have a security product that implements both types, how are they processed? In which order? Let's take an example that I faced yesterday at a customer. The security product is a mail protection system which scans incoming SMTP traffic, extracts emails, attachments and tests them (in a sandbox if needed). Two types of lists are available and may contain the following indicators:
This looks very efficient: you can white list IP addresses of internal SMTP relays, domains from partners, or block domains used by spammers. But it can also have nasty effects. The question to think about is: In which order are the lists processed? They are multiple scenarios possible:
Let's take the practical example that I faced yesterday as an example:
In the blocking list, there is a rule to prevent people to receive emails from the following domain: "efax.com". This rule is in place for months. Suddenly, a user complained that he can't receive emails from the domain "telefax.com.uy". So, we added a rule in the allowed list to always allow emails sent from this domain. But it did not work... After some investigations, we found the issue!
The blocking list is processed in the first place and still rejected emails from telefax.com.uy (because the 'efax.com' rule matched). But why does it match a sub-string of the domain? By reading the documentation, we found that regular exceptions are allowed in rules.
To fix this issue, we changed the blocking rule to '^efax\.com$' to really match this domain and nothing else. With this configuration, the blocking list did not match any rule and the allowed list matched on 'telefax.com.uy". Happy user!
Conclusion: The implementation of white or black-list is not easy and must be carefully tested and... RTFM to be sure to fully understand their priority!
Xavier Mertens (@xme)
Senior ISC Handler - Freelance Cyber Security Consultant
Posted by InfoSec News on Sep 20https://www.cyberscoop.com/cybersecurity-talent-shortage-self-inflicted-problem/
Posted by InfoSec News on Sep 20https://arstechnica.com/information-technology/2019/09/worlds-most-destructive-botnet-returns-with-stolen-passwords-and-email-in-tow/
Posted by InfoSec News on Sep 20https://www.washingtonpost.com/politics/in-turnaround-mcconnell-backs-250-million-in-election-security-funding/2019/09/19/b9f64462-daec-11e9-ac63-3016711543fe_story.html
Posted by InfoSec News on Sep 20https://www.desmoinesregister.com/story/news/crime-and-courts/2019/09/19/iowa-state-senator-calls-oversight-committee-investigate-courthouse-break-ins-crime-polk-dallas/2374576001/
Posted by InfoSec News on Sep 20https://www.npr.org/2019/09/19/760317486/the-mysterious-death-of-the-hacker-who-turned-in-chelsea-manning