Trust No Program
Reply to topic
Anti Delete
Buster


Joined: 06 Aug 2007
Posts: 2184
Reply with quote
Anti Delete is a DLL that prevents sandboxed programs from deleting any files in the sandbox, by silently "discarding" any delete operation.

Useful to malware researchers.

Usage: To use it, download the ZIP and extract the DLL into some folder. Then insert this line in your Sandboxie.ini file for the sandbox in which you want to use the DLL.

InjectDll=C:\some\path\to\antidel.dll

The DLL will be injected into any process running in the sandbox. That's it!

Download from here:

http://bsa.isoftware.nl/old/antidel.rar


Last edited by Buster on Tue Oct 09, 2012 2:40 pm; edited 2 times in total
View user's profileSend private message
nick s


Joined: 20 Dec 2008
Posts: 329
Reply with quote
Cool idea Buster. Can it be extended to deal with sdelete's deletion method?

_________________
Nick
View user's profileSend private message
Buster


Joined: 06 Aug 2007
Posts: 2184
Reply with quote
nick s wrote:
Cool idea Buster. Can it be extended to deal with sdelete's deletion method?


Anti Delete is not new. I contributed it over 1 year ago.

I donīt know whatīs sdeleteīs deletion method. Do you know?
View user's profileSend private message
nick s


Joined: 20 Dec 2008
Posts: 329
Reply with quote
Buster wrote:
I donīt know whatīs sdeleteīs deletion method. Do you know?

I'm no expert on deletion coding or methods. I mentioned it because I was able to use a sandboxed sdelete to delete a sandboxed txt file created by a sandboxed text editor. Deleting via a sandboxed Windows Explorer was blocked by AntiDel.
View user's profileSend private message
Buster


Joined: 06 Aug 2007
Posts: 2184
Reply with quote
Anti Delete only prevents deletions invoked by DeleteFileA API.
View user's profileSend private message
nick s


Joined: 20 Dec 2008
Posts: 329
Reply with quote
Buster wrote:
Anti Delete only prevents deletions invoked by DeleteFileA API.

No problem. I only brought it up because I remember the days when sdelete was being bundled with rootkit packages. Maybe it still is.
View user's profileSend private message
Buster


Joined: 06 Aug 2007
Posts: 2184
Reply with quote
I have modified AntiDel to fix the problem nick s found.

You can get the new version from here.
View user's profileSend private message
Mark_


Joined: 31 Dec 2008
Posts: 108
Reply with quote
DeleteFileA directly calls DeleteFileW (after converting from Ansi to Unicode) so you don't have to hook both Smile
View user's profileSend private message
Buster


Joined: 06 Aug 2007
Posts: 2184
Reply with quote
Mark_ wrote:
DeleteFileA directly calls DeleteFileW (after converting from Ansi to Unicode) so you don't have to hook both Smile


I made a test and hooking only DeleteFileW sdelete was able to delete a file. Hooking both this would not happen. Donīt know why or if I did something wrong. Confused
View user's profileSend private message
Mark_


Joined: 31 Dec 2008
Posts: 108
Reply with quote
Buster wrote:
Mark_ wrote:
DeleteFileA directly calls DeleteFileW (after converting from Ansi to Unicode) so you don't have to hook both Smile


I made a test and hooking only DeleteFileW sdelete was able to delete a file. Hooking both this would not happen. Donīt know why or if I did something wrong. Confused


if we are talking about the same sdelete: http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx
then you are doing something wrong, i stepped trough it in a debugger and set a breakpoint on W that did fire..
(however the file is overwritten and renamed by the tool before calling deletefile)
View user's profileSend private message
nick s


Joined: 20 Dec 2008
Posts: 329
Reply with quote
Buster wrote:
I have modified AntiDel to fix the problem nick s found.

You can get the new version from here.

Thanks for the improvement...

Code:
C:\sysinternals>sdelete c:\files\antidel\test.txt

SDelete - Secure Delete v1.51
Copyright (C) 1999-2005 Mark Russinovich
Sysinternals - www.sysinternals.com

SDelete is set for 1 pass.
c:\files\antidel\test.txt...
Error deleting c:\files\antidel\test.txt: The operation completed successfully.
View user's profileSend private message
falconeddie


Joined: 27 Jun 2010
Posts: 2
Reply with quote
Buster wrote:
I have modified AntiDel to fix the problem nick s found.

You can get the new version from here.


The download link is not working, does anyone have the updated version? Buster would you mind uploading it again? Thanks!
View user's profileSend private message
Buster


Joined: 06 Aug 2007
Posts: 2184
Reply with quote
Sure, no problem. You can download it from here:

http://bsa.isoftware.nl/antidel.rar
View user's profileSend private message
falconeddie


Joined: 27 Jun 2010
Posts: 2
Reply with quote
Buster wrote:
Sure, no problem. You can download it from here:

http://bsa.isoftware.nl/antidel.rar


Thanks man! Great work!
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4343
Location: Ohio, USA
Reply with quote
Buster wrote:
Spam!!!!
The spammers are getting more sophisticated, though:
mentioning sdelete and sandboxed, in the post.

Wasn't there an "erica" who has posted using the Guest account?
Maybe the spammer registered using her name.

The words in the spammers post, are from the "nick s" post, above.


Last edited by Guest10 on Mon Sep 06, 2010 11:26 am; edited 1 time in total

_________________
Paul
XP Pro SP3 (Admin rights), Zone Alarm Pro Firewall, Malwarebytes Pro, Firefox 21, Thunderbird 17
View user's profileSend private message
Anti Delete
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 2  

Use the RSS feed to watch this topic for replies
  
  
 Reply to topic  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,100,419 times since June 2004