Live Forensics – Extracting Credentials on Windows and Linux Systems
Keywords:
DPAPI, LSA, Protected Storage, registry, Chrome, Firefox, Ubuntu, gnome-keyringAbstract
’Post-mortem’ analysis of a system can be greatly simplified if the correct information is gathered in the live analysis stage. In this paper I’ve described Windows’ data protection APIs available for developers, some simplified versions of the API (LSA Secrets, Protected Storage), different methods used by applications to store their passwords safely and comparisons between them. As an example, I’ve built tools to dump passwords saved by browsers (Chrome, IE, Firefox) and an extractor of the login password (if available) from the registry. The basic concepts of how passwords may be stored apply to majority of applications that run on Windows and store passwords (protected or not) and understanding this makes possible recovery of other credentials also (messaging software, mail clients ...).
On the Linux side, I’ve analyzed a general method of storing passwords – keyrings, and the methods adopted by Chrome browser, and built extraction command line tools for both of them, in the form of a python script and a C++ application.References
Elie Burzstein, Jean Michel Picod, Recovering Windows Secrets and certificates offline, Black Hat 2010.
MSDN, PStore, - http://msdn.microsoft.com/en-us/library/bb432403(v=vs.85).aspx
MSDN, DPAPI - http://msdn.microsoft.com/en-us/library/ms995355.aspx
Security analysis in DPAPI, http://www.passcape.com/index.php?section=blog&cmd=details&id=20
DLL Export Viewer, http://www.nirsoft.net/utils/dll_export_viewer.html
Nirsoft forensic software - http://www.nirsoft.net/computer_forensic_software.html
SecurityXploded – Password Recovery Tools - http://securityxploded.com/password-recovery-tools.php
http://code.google.com/p/secrets/
Why does Google Chrome not have a master password? - http://productforums.google.com/forum/#!category-topic/chrome/give-feature-feedback-and-suggestions/k6JmRoGJp5w
SQLite database engine – http://sqlite.org
KeePass Security features - http://keepass.info/help/base/security.html
Mozilla Network Security Services - http://www.mozilla.org/projects/security/pki/nss/
Boja, C., Security of Password and Data Managers for Internet Browsers, Proceedings of The 3rd International Conference on Security for Information Technology and Communications, SECITC'10, Bucharest, Romania, ASE Publishing House, pp. 209 – 220, ISBN 978-606-505-283-3
SapporoWorks - HTTP Basic
Authentication and auto-complete passwords in Internet Explorer 7, http://www.securityfocus.com/archive/1/458115/30/0/threaded
Opera Password Secrets - http://securityxploded.com/operapasswordsecrets.php
Gnome-keyring Security Philosophy - https://live.gnome.org/GnomeKeyring/SecurityPhilosophy
Gnome Keyring credentials dumper - http://code.google.com/p/secrets/source/browse/dump_keyrings.py
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
- The author(s) is responsible for the correctness and legality of the paper content.
- Papers that are copyrighted or published will not be taken into consideration for publication in JMEDS It is the author(s) responsibility to ensure that the paper does not cause any copyright infringements and other problems.
- It is the responsibility of the author(s) to obtain all necessary copyright release permissions for the use of any copyrighted materials in the paper prior to the submission.
- The Author(s) retains the right to reuse any portion of the paper, in future works, including books, lectures and presentations in all media, with the condition that the publication by JMEDS is properly credited and referenced.
JMEDS articles by Journal of Mobile, Embedded and Distributed Systems (JMEDS) is licensed under a Creative Commons Attribution 4.0 International License.
Based on a work at http://jmeds.eu.
Permissions beyond the scope of this license may be available at http://jmeds.eu/index.php/jmeds/about/submissions#copyrightNotice.