Hi tzuk,
I find Sandboxie to be a GREAT tool to collect "drive-by-download" malware pieces in the wild. However, for practical purposes, this can be done only "manually", because (unless I'm not mistaken) there's no direct way to instruct Sandboxie to terminate sandboxed processes through the command line.
What would be a great (for me, anyway) would be a way to terminate all processes in a particular sandbox with the command line (for instance, terminateall.exe /box:[box]). So far, it's easy to create a batch script (or actually a cygwin script, which is what I'm using) to launch Sandboxie like this:
Start.exe /box:[box] "C:\Program Files\Internet Explorer\iexplore.exe" [exploit site]
However, there are two problems in automating this process: first of all, there is the sandbox creation issue. While the creation of an appropriate folder that will contain the new sandbox and the automated inclusion of this new sandbox parameters (in sandboxie.ini) are no problem because I can do that through the script, Sandboxie will later complain that it doesn't recognize the new sandbox because I can't force it to re-read the sandboxie.ini file through the command line.
The second problem is the termination issue. Unless I can tell sandboxie to terminate all the processes running in a particular sandbox, a script like this will have processes active in each sandbox until they're all terminated manually, which would greatly limit the amount of automated "launch bad site and observe" that can be issued automatically.
If these functions could be implemented, sandboxie would make an almost perfect "honeypot" for bad drive-by-downloads sites: you feed a list of known bad pages to the script, and the script could instruct sandboxie to routinely launch IE on those pages and terminate all that's been created after a while.
F.
Command-line options + termination
Oh but you can:I can't force it to re-read the sandboxie.ini file through the command line
Code: Select all
Start.exe /reload
I can add Start.exe /terminate. Combined with /box:somebox or /box:* this will be what you need, I guess.The second problem is the termination issue
tzuk
Yes, that would be perfect. Thanks tzuk, this is the best product of its genre and has the best support as well.tzuk wrote:Oh but you can:I can't force it to re-read the sandboxie.ini file through the command line
Thanks. Very good.Code: Select all
Start.exe /reload
tzuk wrote:I can add Start.exe /terminate. Combined with /box:somebox or /box:* this will be what you need, I guess.The second problem is the termination issue
Who is online
Users browsing this forum: No registered users and 1 guest