Wilders Security Forums  

Go Back   Wilders Security Forums > Other Security Topics > malware problems & news
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old December 19th, 2009, 06:30 PM
connect4 connect4 is offline
Regular Poster
 
Join Date: May 2008
Posts: 101
Default How safe is using scripts / batch files / macros that involve password form filling?

It seems that RoboForm password filler is safer than manually typing in your password for websites.
http://www.roboform.com/anti-keylogger.html

"..Quick Typing. Roboform enters password quickly and it presses Submit button quickly, so many keyloggers will not be fast enough to get web page password from the page..."


What about using Batch files or Macros?

I mean would it be safer or more vulnerable to use a batch file or a macro to input your password into a program, for example TrueCrypt password prompt.

For example: If I were to mount a TrueCrypt container, it would pop up a password promt in which I would have to manually enter in my password.

Now, would it make it any more or less safe using a batch file to mount my TrueCrypt container?
Example: Create a batch file that uses TrueCrypt command line feature to mount my container.

Note:
This is assuming that no malware or user can access your batch files or macros that would contain your password/s. I want to find out if there are any vulnerabilities to using batch files or macros while they are running. (Hypothetical example: using bat files=> copies ur password somewhere that is insecure that manually typing doesn't do.)
(Also: I use Macro Express Pro 4 + use Windows XP)
  #2  
Old December 20th, 2009, 11:01 AM
noone_particular noone_particular is offline
Very Frequent Poster
 
Join Date: Aug 2008
Posts: 1,876
Default Re: How safe is using scripts / batch files / macros that involve password form filling?

Quote:
This is assuming that no malware or user can access your batch files or macros that would contain your password/s. I want to find out if there are any vulnerabilities to using batch files or macros while they are running. (Hypothetical example: using bat files=> copies ur password somewhere that is insecure that manually typing doesn't do.)
There is nothing inherently insecure in the using of batch files. Anything that could capture the password from it could capture a manually entered one as well. That said, batch files are plain text. Your password would be stored as plain text on the same PC it's used on. For that reason alone, I wouldn't a batch file to enter a password unless it was encrypted as well. It's also possible that the password would remain stored in RAM for a while where forensic recovery tools could get it.
"This is assuming that no malware or user can access your batch files or macros that would contain your password/s."
That is a big and potentially dangerous assumption. Unless the batch files is encrypted or stored on removable media, anyone with physical access to the PC could read it.
__________________
Sitting in a bunker, here behind my wall, waiting for the worms to come.
  #3  
Old December 20th, 2009, 05:04 PM
connect4 connect4 is offline
Regular Poster
 
Join Date: May 2008
Posts: 101
Default Re: How safe is using scripts / batch files / macros that involve password form filling?

Quote:
Originally Posted by noone_particular
"...This is assuming that no malware or user can access your batch files or macros that would contain your password/s."
That is a big and potentially dangerous assumption. Unless the batch files is encrypted or stored on removable media, anyone with physical access to the PC could read it.

Hmm this is interesting, I want to look into encrypting batch files / scripts...


Quote:
Originally Posted by noone_particular
There is nothing inherently insecure in the using of batch files. Anything that could capture the password from it could capture a manually entered one as well...


So you are saying that using batch files and macro scripts in and of themselves don't make it any more or less secure than manually typing in passwords, correct?

With that being said, is there a way to use a program to make password filling more secure? (Ex: Roboform for website login filling)

Also it seems that some of these programs could be potentially used for this purpose but I am not sure: http://www.snapfiles.com/Shareware/security/swpass.html

Any thoughts on these programs or other secure methods for password filling?



Quote:
Originally Posted by noone_particular
... It's also possible that the password would remain stored in RAM for a while where forensic recovery tools could get it.


This has nothing to do with using Batch files and Macros correct?

Last edited by connect4 : December 20th, 2009 at 05:29 PM.
  #4  
Old December 23rd, 2009, 07:41 PM
noone_particular noone_particular is offline
Very Frequent Poster
 
Join Date: Aug 2008
Posts: 1,876
Default Re: How safe is using scripts / batch files / macros that involve password form filling?

Quote:
So you are saying that using batch files and macro scripts in and of themselves don't make it any more or less secure than manually typing in passwords, correct?
Correct. The batch file or script doesn't introduce any additional vulnerability to the actual process of entering the password. The big difference when using a batch file or script is that the password is on your hard drive, media, or external device in plain text. Regardless of what you name the script or batch file, it could be found by searching for all files with specific file extensions, examples:
*.cmd
*.bat
*.vbs
Quote:
Quote:
It's also possible that the password would remain stored in RAM for a while where forensic recovery tools could get it.
This has nothing to do with using Batch files and Macros correct?
Correct. Well designed strong encryption programs will take steps to ensure that a password stored in RAM is overwritten or otherwise made unrecoverable. Most other user software will not go to that extreme.

I can't offer any opinion on Roboform or other password software. For websites such as forums and webmail accounts, I use the browsers built in password manager. For more sensitive passwords like those for online banking or credit card sites and those used to mount encrypted containers or partitions, I enter these manually.

IMO, storing sensitive passwords on your system is an unnecessary risk. It's another piece of software that the criminal element will be probing and trying to crack, which means that it will probably need regular updating. No matter how good the password app is, it will only be as secure as the OS it's running on.
__________________
Sitting in a bunker, here behind my wall, waiting for the worms to come.
  #5  
Old December 23rd, 2009, 09:43 PM
dantz dantz is offline
Frequent Poster
 
Join Date: Jan 2007
Posts: 577
Default Re: How safe is using scripts / batch files / macros that involve password form filling?

Quote:
Originally Posted by noone_particular
Correct. The batch file or script doesn't introduce any additional vulnerability to the actual process of entering the password. The big difference when using a batch file or script is that the password is on your hard drive, media, or external device in plain text.
Incorrect. When run under command-line, TrueCrypt will pause at the appropriate moment and present the user with the standard password entry screen. You can also (if desired) hardcode the password into the batchfile using the /p switch, but this will of course create a security risk.
  #6  
Old December 24th, 2009, 12:10 PM
noone_particular noone_particular is offline
Very Frequent Poster
 
Join Date: Aug 2008
Posts: 1,876
Default Re: How safe is using scripts / batch files / macros that involve password form filling?

That's basically what I just said. Having the password in a batch file or script is an unnecessary risk, not just with TrueCrypt but with any sensitive password.
__________________
Sitting in a bunker, here behind my wall, waiting for the worms to come.
 

Wilders Security Forums > Other Security Topics > malware problems & news « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:09 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums