Tuesday, August 25, 2015

Saturday, August 15, 2015

Create lots of files quickly

 on  with No comments 
In ,  
Ever needed to create a lot of files in Windows?  I was testing a security control that was supposed to monitor the filesystem for a large number of file changes in a short amount of time, a tell tale sign of some variety of ransomware.  So after quickly consulting Google, the subject matter expert of all things, I hacked together this quick one liner.  In this example, it will create 100 directories, each containing 500 files with the single word "data" in c:\temp. There's no reason why you can't nest a few more for loops to create as many levels of directories as needed.
Share:

Wednesday, August 5, 2015

Securing Your DNS

 on  with No comments 
In , ,  
There's been a lot of talk around the Internet recently about DNS. Much like SMTP traffic, it's becoming something that requires more and more attention. Between various ransomware programs that utilize various types of DNS hijacking techniques, to recent malware programs that embed communication with their Control and Command servers inside of innocent looking DNS packets, security your DNS will go a long way towards keeping your clients safe. I'm not going to discuss internal matters such as using DNSSEC to secure your zones or the relative merits of only allowing secure dynamic updates, those are topics for another (though very necessary) discussion. I'm going to focus here on measures that I'm implementing, or considering implementing, for outgoing DNS queries. This is in addition to, not as opposed to, any content filtering in your firewall that seems to accomplish the same end goal at first glance.
Share: