SlideShare a Scribd company logo
REMnux Tutorial-2: Extraction
and Decoding Artifacts
Rhydham Joshi
M.S. in Software Engineering, San Jose State University
Phone : (+1) 408-987-1991 | Email : rhydham.joshi@yahoo.com
Blog : malwareforensics1.blogspot.com | Linkedin : www.linkedin.com/in/rhydhamjoshi
Contents:
• REMnux:
• Introduction to REMnux
• Artifacts:
• Malwares and Artifacts
• Deobfuscate and String extraction:
• unXOR
• XORSearch
• XORStrings
• xorBruteForcer
• brutexor
• xortool
• NoMoreXor
• Forensics investigation practices:
• Forensically Imaging a drive
• Dcfldd
• Forensics and file carving:
• Foremost
• Scalpel
• Bulk_extractor
• hachoir
• References
REMnux: A Linux Toolkit for Reverse-Engineering and
Analyzing Malware
• REMnux is a free, lightweight Linux (Ubuntu distribution) toolkit for reverse-engineering
malicious software.
• REMnux provides the collection of some of the most common and effective tools used for reverse
engineering malwares in categories like:
1) Investigate Linux malwares
2) Statically analyze windows executable file
3) Examine File properties and contents
4) Multiple sample processing
5) Memory Snapshot Examination
6) Extract and decode artifacts
7) Examine Documents
8) Browser Malware Examination
9) Network utilities
• For more information about REMnux, please visit my blog at:
http://malwareforensics1.blogspot.com/2015/04/the-power-of-remnux-linux-toolkit-for.html
Artifacts:
• Artifact is something observed in a scientific investigation or experiment that is not naturally
present but occurs as a result of the preparative or investigative procedure.
• Malwares usually embed themselves with USB devices, malicious JavaScript in HTML pages, a
SQL injection attack, email attachment, PDF files, Document files, images etc.
• Malwares exhibits variety of behavior by thoroughly examining the system. I have listed some
of the malware anomalies.
Malware Anomalies:
• Rogue Processes
• Unknown services
• Code injection and root kit behavior
• Unusual OS artifacts
• Suspicious network activity
• Evidence of persistence
• For more information about REMnux, please visit my blog at:
http://malwareforensics1.blogspot.com/2015/04/the-power-of-remnux-linux-toolkit-for.html
Deobfuscate and String extraction:-> unXOR
• unXOR try guessing keys until the known-plaintext is found. It requires
either key or plaintext argument to keep guessing the keys
Deobfuscate and String extraction:-> xorsearch
• XORStrings is best described as the combination of my XORSearch tool
and the well-known strings command.
• XORStrings will search for strings in the (binary) file , using the same
encodings as XORSearch (XOR, ROL, ROT and SHIFT).
• For every encoding/key, XORStrings will search for strings and report the
number of strings found, the average string length and the maximum
string length.
• Common used words : “HTML”, “This program” & “DOS”
Deobfuscate and String extraction:-> xorsearch
Deobfuscate and String extraction:-> xorstrings
• xorBruteForcer decodes contents of a given file using all possible 1-byte XOR key
values. The output of the tool contains lots of noise, xorBruteForcer shows potential
string values
for all possible
1-byte XOR
key values.
• Now, we can
use –k key
to reduce
noise
Deobfuscate and String extraction:-> xorBruteForcer
• Brutexor brute-forces all possible 1-byte
XOR key values and examines the file for
strings that might have been encoded
with these keys.
• The brutexor tool provides a handy way
to brute-force simple XOR keys without
looking for any particular string.
• Brutexor shows ASCII data located
between null bytes ("x00") by default.
• Brutexor is very handy provided we know
the key found using other tools like,
xorsearch, xorstring, xorBruteForcer etc.
• It could do brutexor for full file too using
–f option.
Deobfuscate and String extraction:-> brutexor
• Xortool is very useful in
determining key length and
in certain cases encrypted
key too.
• Here I have used xor.py
program to encrypt one
pdf file.
• Xortool returns the key
length
• By proper combinations or by
using trail and error method,
(usually 00 for text and 20 for
doc), we can even extract
exact key
Deobfuscate and String extraction:-> xortool
• NoMoreXOR attempts to guess XOR 256-byte long XOR key values.
• It uses Yara signatures to determine whether a potential key value worked:
• If the decoded content matches one of the signatures in you file, then probably
the key was guessed correctly.
• In that case, the tool deobfuscates
corresponding contents and
extracts them from the original file.
• NoMoreXOR extracted the deobfuscated
contents into the files named
filename.0.unxored that could be
further examined.
Deobfuscate and String extraction:-> NoMoreXor
• Forensic investigators often used to investigate
devices like compact disk, hard disk, USB, etc.
• The first step is to perform forensic imaging of the drive
start the investigation on them insuring no harm
or any type of modification to evidence.
• Make sure to use Write Blocker to perform imagining.
• Since Linux is dominantly used for performing Investigations.
I would be focusing on doing forensic imaging using Linux.
• “Recoverjpeg”, “Foremost”, “Scalpel” for commonly used for
file carving.
Forensics Investigation practices-> Forensically imaging a Drive
• Consider we have a suspect USB drive to be forensically examined.
• Connect USB drive to Write blocker and then to Forensic Workstation to convert the
suspect drive to *.dd image file.
• Find the drive using dir /dev/sd* command and dmesg | grep sd* (dmesg lists the Kernel
messages including the information about drives)
• The *.dd extension (for archive images, not picture images) is not a single file, but rather
an archive in the form of a file.
• Dcfldd (download it using sudo apt-get install dcfldd) is an enhanced version for imaging
drives. It is an advance version of dd developed by the U.S. Department of Defense
Computer Forensics Lab.
• It has some useful features for forensic investigators such as:
• On-the-fly hashing of the transmitted data.
• Progress bar of how much data has already been sent.
• Wiping of disks with known patterns.
• Verification that the image is identical to the original drive, bit-for-bit.
• Simultaneous output to more than one file/disk is possible.
• The output can be split into multiple files.
• Logs and data can be piped into external applications.
Forensics Investigation practices-> Forensically imaging a Drive
Forensics Investigation practices-> Forensically imaging a Drive
• man dcfldd or dcfldd --help provides many options that can be used to
format the output
• Here, Input file is /dev/sdd1 and output file is located at /suspicious
• This command will read ten Gigabytes from the source drive and write that
to a file called driveimage.dd.aa
• It will then read the next ten gigs and name that driveimage.dd.ab.
• It will also calculate the MD5 hash and the sha256 hash of the ten Gigabyte
chunk.
• The md5 hashes will be stored in a file called md5.txt and the sha256
hashes will be stored in a file called sha256.txt.
• The block size for transferring has been set to 512 bytes, and in the event
of read errors, dcfldd will write zeros.
Forensics Investigation practices->Dcfldd
• Foremost is a console program to recover files based on their headers, footers,
and internal data structures.
• Foremost can work on image files, such as those generated by dd, Safeback,
Encase, etc, or directly on a drive. foremost can search through most any kind of
data without worrying about the format.
• Foremost is designed to ignore the type of underlying filesystem and directly read
and copy portions of the drive into the computer's memory.
• It takes these portions one segment at a time, and using a process known as file
carving searches this memory for a file header type that matches the ones found
in Foremost's configuration file.
• When a match is found, it writes that header and the data following it into a file,
stopping when either a footer is found, or until the file size limit is reached.
• The headers and footers can be specified by a configuration file or you can use
command line switches to specify built-in file types.
• These built-in types look at the data structures of a given file format allowing for
a more reliable and faster recovery.
• Foremost served as the basis for Scalpel, a significantly faster program to also
recover deleted files & to perform forensic investigation on device images.
Forensics & File Carving -> Foremost
Forensics & File Carving -> Foremost
Forensics & File Carving -> Foremost
• Scalpel is an open source program for recovering deleted data originally
based on foremost, although significantly more efficient. It runs on Linux
and Windows.
• The tool visits the block database storage and identifies the deleted files
from it and recover them instantly.
• Apart from file recovery it is also useful for digital forensics investigation.
• By default scalpel utility has its own configuration file in ‘/etc‘ directory
and full path is “/etc/scalpel/scalpel.conf” or “/etc/scalpel.conf“.
• Everything is commented out (#) by default. So before running scalpel one
needs to uncomment the file format that one want to recover.
• However uncomment the entire file is time consuming and will generate a
huge false results.
• Installation comand: sudo apt-get install scalpel
Forensics & File Carving -> Scalpel
Forensics & File Carving -> Scalpel
• Here, I uncommented for Java, zip, .dat, wav, rpm, pdf, html, doc, avi, bmp, png
file formats.
Forensics & File Carving -> Scalpel
Forensics & File Carving -> Scalpel
• bulk_extractor is a multi-threaded program that extracts features such as email addresses, credit
card numbers, URLs, and other types of information from digital evidence files, disk image, or
directory of files.
• It is a useful forensic investigation tool for many tasks such as malware and intrusion
investigations, identity investigations and cyber investigations, as well as analyzing imagery and
password cracking.
• The results can be easily inspected, parsed, or processed with automated tools.
• bulk_extractor automatically detects, decompresses, and recursively re-processes compressed
data that is compressed with a variety of algorithms.
• It can process compressed data (like ZIP, PDF and GZIP files) and incomplete or partially
corrupted data.
• It can carve JPEGs, office documents and other kinds of files out of fragments of compressed
data. It will detect and carve encrypted RAR files, XOR files etc.
• It builds word lists based on all of the words found within the data, even those in compressed files
that are in unallocated space. Those word lists can be useful for password cracking.
• It creates histograms showing the most common email addresses, URLs, domains, search terms
and other kinds of information on the drive.
• In addition to the capabilities described above, bulk_extractor also includes:
• A graphical user interface, Bulk Extractor Viewer, for browsing features stored in feature files and for
launching bulk_extractor scans
• A small number of python programs for performing additional analysis on feature files
Forensics & File Carving -> Bulk_Extractor
Forensics & File Carving -> Bulk_Extractor
Forensics & File Carving -> Bulk_Extractor
Forensics & File Carving -> Bulk_Extractor
Forensics & File Carving -> Bulk_Extractor
Forensics & File Carving -> Bulk_Extractor
Forensics & File Carving -> Bulk_Extractor
Forensics & File Carving -> Bulk_Extractor
Forensics & File Carving -> Bulk_Extractor
Bulk_Extractor is very powerful tool for
extracting contents from file.For more
information about Bulk_Extractor, go
through below urls :
http://tools.kali.org/forensics/bulk-
extractor
http://www.basistech.com/wp-
content/uploads/2014/04/osdf-2011-
garfinkel-bulk-extractor.pdf
http://wiki.bitcurator.net/index.php?tit
le=Using_Bulk_Extractor_Viewer_to_Fi
nd_Potentially_Sensitive_Information_
on_a_Disk_Image
https://github.com/simsong/bulk_extr
actor/wiki/Installing-bulk_extractor
Forensics & File Carving -> Hachoir-metadata
• Hachoir metadata can extract metadata even from invalid/truncated files, remove
duplicate values, Set priority to value, so it's possible to filter metadata (option --
level).
• It archives (bzip2, gzip, zip, tar), audio (MPEG audio/MP3, WAV, Sun/NeXT audio,
Ogg/Vorbis, MIDI, AIFF, AIFC, Real Audio), images (BMP, CUR, EMF, ICO, GIF, JPEG,
PCX, PNG, TGA, TIFF, WMF, XCF), and video (ASF/WMV, AVI, Matroska, Quicktime,
Ogg/Theora, Real Media).
• Hachoir urwid project is a binary file
explorer that uses the Hachoir library to
parse files.
• Using this tool, we can know the exact
meaning of each bit/byte of files.
Forensics & File Carving -> Hachoir-urwid
• Remnux(https://remnux.org/)
• Artifacts and Malwares(http://windowsir.blogspot.com/p/malware.html)
• Unxor(https://github.com/tomchop/unxor/)
• Bulk_Extractor(http://tools.kali.org/forensics/bulk-extractor)
• Bulk_Extractor(http://www.basistech.com/wp-content/uploads/2014/04/osdf-2011-garfinkel-
bulk-extractor.pdf)
• Bulk_Extractor(http://wiki.bitcurator.net/index.php?title=Using_Bulk_Extractor_Viewer_to_Find_
Potentially_Sensitive_Information_on_a_Disk_Image)
• Bulk_Extractor(https://github.com/simsong/bulk_extractor/wiki/Installing-bulk_extractor)
• Scalpel(https://www.youtube.com/watch?v=5Z9JsBazOdw)
• Foremost(https://www.youtube.com/watch?v=OGlRKz2PECg)
• Dcfldd(http://www.forensicswiki.org/wiki/Dcfldd)
• Xortool(https://github.com/hellman/xortool)
• Hachoir(http://www.forensicswiki.org/wiki/Hachoir)
• XorBruteForcer(http://digital-forensics.sans.org/blog/2013/05/14/tools-for-examining-xor-
obfuscation-for-malware-analysis)
References:
Thank you..!

More Related Content

PPTX
Remnux tutorial-1 Statically Analyse Portable Executable(PE) Files
PPTX
REMnux Tutorial-3: Investigation of Malicious PDF & Doc documents
PDF
LAS16 111 - Raspberry pi3, op-tee and jtag debugging
PPTX
Docker Security Overview
PDF
Attacking Oracle with the Metasploit Framework
PDF
LAS16-504: Secure Storage updates in OP-TEE
PDF
LCU14-103: How to create and run Trusted Applications on OP-TEE
PPTX
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Remnux tutorial-1 Statically Analyse Portable Executable(PE) Files
REMnux Tutorial-3: Investigation of Malicious PDF & Doc documents
LAS16 111 - Raspberry pi3, op-tee and jtag debugging
Docker Security Overview
Attacking Oracle with the Metasploit Framework
LAS16-504: Secure Storage updates in OP-TEE
LCU14-103: How to create and run Trusted Applications on OP-TEE
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...

What's hot (20)

PDF
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
PPTX
Android audio system(audioflinger)
PPT
Malware forensics
PDF
Cours développement côté serveur
PPTX
Getting started with Docker
PPTX
Introduction to docker
PDF
Practice of Android Reverse Engineering
PDF
Introduction to yocto
PPTX
What is Docker
PDF
Embedded Linux Kernel - Build your custom kernel
PDF
LF_DPDK17_Serverless DPDK - How SmartNIC resident DPDK Accelerates Packet Pro...
PDF
Insecure coding in C (and C++)
PDF
Gitlab CI : Integration et Déploiement Continue
PDF
MediaPlayer Playing Flow
PDF
HKG15-311: OP-TEE for Beginners and Porting Review
PPTX
spark_intro_1208
PPTX
Securité des applications web
PDF
Getting Started With Docker | Docker Tutorial | Docker Training | Edureka
PPTX
Yocto Project introduction
PPTX
Linux Device Tree
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
Android audio system(audioflinger)
Malware forensics
Cours développement côté serveur
Getting started with Docker
Introduction to docker
Practice of Android Reverse Engineering
Introduction to yocto
What is Docker
Embedded Linux Kernel - Build your custom kernel
LF_DPDK17_Serverless DPDK - How SmartNIC resident DPDK Accelerates Packet Pro...
Insecure coding in C (and C++)
Gitlab CI : Integration et Déploiement Continue
MediaPlayer Playing Flow
HKG15-311: OP-TEE for Beginners and Porting Review
spark_intro_1208
Securité des applications web
Getting Started With Docker | Docker Tutorial | Docker Training | Edureka
Yocto Project introduction
Linux Device Tree
Ad

Viewers also liked (20)

PPTX
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
PPTX
Malware Analysis and Defeating using Virtual Machines
PPTX
Anomalies Detection: Windows OS - Part 1
PDF
Volatile IOCs for Fast Incident Response
PPTX
Basic malware analysis
PDF
Linux Memory Analysis with Volatility
ODP
Malware analysis - What to learn from your invaders
PPTX
A walk through Windows firewall and Netsh commands
PDF
Memory forensics and incident response
PDF
katagaitaictf7_hw_ysk
PPTX
FDTK - O Ubuntu para Perícia Forense Digital
PDF
(120513) #fitalk an introduction to linux memory forensics
PPTX
Memory forensics
DOCX
Malware protection system
PDF
Final Project Report Nadar
PDF
Malicious File for Exploiting Forensic Software
PPTX
Anomalies Detection: Windows OS - Part 1
PDF
katagaitai CTF 勉強会 #5 -関東 |med おまけ問題 Parlor (Plaid CTF 2014) @m1z0r3勉強会
PPTX
List of Malwares
PDF
RMISC logging for hackers
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
Malware Analysis and Defeating using Virtual Machines
Anomalies Detection: Windows OS - Part 1
Volatile IOCs for Fast Incident Response
Basic malware analysis
Linux Memory Analysis with Volatility
Malware analysis - What to learn from your invaders
A walk through Windows firewall and Netsh commands
Memory forensics and incident response
katagaitaictf7_hw_ysk
FDTK - O Ubuntu para Perícia Forense Digital
(120513) #fitalk an introduction to linux memory forensics
Memory forensics
Malware protection system
Final Project Report Nadar
Malicious File for Exploiting Forensic Software
Anomalies Detection: Windows OS - Part 1
katagaitai CTF 勉強会 #5 -関東 |med おまけ問題 Parlor (Plaid CTF 2014) @m1z0r3勉強会
List of Malwares
RMISC logging for hackers
Ad

Similar to REMnux tutorial-2: Extraction and decoding of Artifacts (20)

PPTX
Beauty of open source in cyber forensics
PDF
File000173
PDF
Hide and seek - interesting uses of forensics and covert channels.
DOCX
841- Advanced Computer ForensicsUnix Forensics LabDue Date.docx
PDF
PPTX
First Responder Course - Session 10 - Static Evidence Collection [2004]
PDF
Debian Linux as a Forensic Workstation
PDF
File000127
PDF
the Cyber - Forensics - Lab - Manual . pdf
PDF
sift_cheat_sheet.pdf
PDF
Linux Recovery
PDF
Digital Forensics
PPTX
Understanding memory in computing part 2.pptx
PDF
kbrgwillis.pdf
PPTX
Group project linux helix
PPT
Anti-Forensic Rootkits
PDF
Oss forensics fosscomm_2011
ODP
Introduction to forensic imaging
PPT
Guide to computer forensics and investigation.ppt
Beauty of open source in cyber forensics
File000173
Hide and seek - interesting uses of forensics and covert channels.
841- Advanced Computer ForensicsUnix Forensics LabDue Date.docx
First Responder Course - Session 10 - Static Evidence Collection [2004]
Debian Linux as a Forensic Workstation
File000127
the Cyber - Forensics - Lab - Manual . pdf
sift_cheat_sheet.pdf
Linux Recovery
Digital Forensics
Understanding memory in computing part 2.pptx
kbrgwillis.pdf
Group project linux helix
Anti-Forensic Rootkits
Oss forensics fosscomm_2011
Introduction to forensic imaging
Guide to computer forensics and investigation.ppt

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
ai tools demonstartion for schools and inter college
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
history of c programming in notes for students .pptx
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
AI in Product Development-omnex systems
PPTX
Transform Your Business with a Software ERP System
PDF
Digital Strategies for Manufacturing Companies
PPTX
Introduction to Artificial Intelligence
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Reimagine Home Health with the Power of Agentic AI​
How Creative Agencies Leverage Project Management Software.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
ai tools demonstartion for schools and inter college
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
history of c programming in notes for students .pptx
Design an Analysis of Algorithms II-SECS-1021-03
Wondershare Filmora 15 Crack With Activation Key [2025
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Odoo Companies in India – Driving Business Transformation.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
How to Choose the Right IT Partner for Your Business in Malaysia
Odoo POS Development Services by CandidRoot Solutions
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
AI in Product Development-omnex systems
Transform Your Business with a Software ERP System
Digital Strategies for Manufacturing Companies
Introduction to Artificial Intelligence

REMnux tutorial-2: Extraction and decoding of Artifacts

  • 1. REMnux Tutorial-2: Extraction and Decoding Artifacts Rhydham Joshi M.S. in Software Engineering, San Jose State University Phone : (+1) 408-987-1991 | Email : rhydham.joshi@yahoo.com Blog : malwareforensics1.blogspot.com | Linkedin : www.linkedin.com/in/rhydhamjoshi
  • 2. Contents: • REMnux: • Introduction to REMnux • Artifacts: • Malwares and Artifacts • Deobfuscate and String extraction: • unXOR • XORSearch • XORStrings • xorBruteForcer • brutexor • xortool • NoMoreXor • Forensics investigation practices: • Forensically Imaging a drive • Dcfldd • Forensics and file carving: • Foremost • Scalpel • Bulk_extractor • hachoir • References
  • 3. REMnux: A Linux Toolkit for Reverse-Engineering and Analyzing Malware • REMnux is a free, lightweight Linux (Ubuntu distribution) toolkit for reverse-engineering malicious software. • REMnux provides the collection of some of the most common and effective tools used for reverse engineering malwares in categories like: 1) Investigate Linux malwares 2) Statically analyze windows executable file 3) Examine File properties and contents 4) Multiple sample processing 5) Memory Snapshot Examination 6) Extract and decode artifacts 7) Examine Documents 8) Browser Malware Examination 9) Network utilities • For more information about REMnux, please visit my blog at: http://malwareforensics1.blogspot.com/2015/04/the-power-of-remnux-linux-toolkit-for.html
  • 4. Artifacts: • Artifact is something observed in a scientific investigation or experiment that is not naturally present but occurs as a result of the preparative or investigative procedure. • Malwares usually embed themselves with USB devices, malicious JavaScript in HTML pages, a SQL injection attack, email attachment, PDF files, Document files, images etc. • Malwares exhibits variety of behavior by thoroughly examining the system. I have listed some of the malware anomalies. Malware Anomalies: • Rogue Processes • Unknown services • Code injection and root kit behavior • Unusual OS artifacts • Suspicious network activity • Evidence of persistence • For more information about REMnux, please visit my blog at: http://malwareforensics1.blogspot.com/2015/04/the-power-of-remnux-linux-toolkit-for.html
  • 5. Deobfuscate and String extraction:-> unXOR • unXOR try guessing keys until the known-plaintext is found. It requires either key or plaintext argument to keep guessing the keys
  • 6. Deobfuscate and String extraction:-> xorsearch
  • 7. • XORStrings is best described as the combination of my XORSearch tool and the well-known strings command. • XORStrings will search for strings in the (binary) file , using the same encodings as XORSearch (XOR, ROL, ROT and SHIFT). • For every encoding/key, XORStrings will search for strings and report the number of strings found, the average string length and the maximum string length. • Common used words : “HTML”, “This program” & “DOS” Deobfuscate and String extraction:-> xorsearch
  • 8. Deobfuscate and String extraction:-> xorstrings
  • 9. • xorBruteForcer decodes contents of a given file using all possible 1-byte XOR key values. The output of the tool contains lots of noise, xorBruteForcer shows potential string values for all possible 1-byte XOR key values. • Now, we can use –k key to reduce noise Deobfuscate and String extraction:-> xorBruteForcer
  • 10. • Brutexor brute-forces all possible 1-byte XOR key values and examines the file for strings that might have been encoded with these keys. • The brutexor tool provides a handy way to brute-force simple XOR keys without looking for any particular string. • Brutexor shows ASCII data located between null bytes ("x00") by default. • Brutexor is very handy provided we know the key found using other tools like, xorsearch, xorstring, xorBruteForcer etc. • It could do brutexor for full file too using –f option. Deobfuscate and String extraction:-> brutexor
  • 11. • Xortool is very useful in determining key length and in certain cases encrypted key too. • Here I have used xor.py program to encrypt one pdf file. • Xortool returns the key length • By proper combinations or by using trail and error method, (usually 00 for text and 20 for doc), we can even extract exact key Deobfuscate and String extraction:-> xortool
  • 12. • NoMoreXOR attempts to guess XOR 256-byte long XOR key values. • It uses Yara signatures to determine whether a potential key value worked: • If the decoded content matches one of the signatures in you file, then probably the key was guessed correctly. • In that case, the tool deobfuscates corresponding contents and extracts them from the original file. • NoMoreXOR extracted the deobfuscated contents into the files named filename.0.unxored that could be further examined. Deobfuscate and String extraction:-> NoMoreXor
  • 13. • Forensic investigators often used to investigate devices like compact disk, hard disk, USB, etc. • The first step is to perform forensic imaging of the drive start the investigation on them insuring no harm or any type of modification to evidence. • Make sure to use Write Blocker to perform imagining. • Since Linux is dominantly used for performing Investigations. I would be focusing on doing forensic imaging using Linux. • “Recoverjpeg”, “Foremost”, “Scalpel” for commonly used for file carving. Forensics Investigation practices-> Forensically imaging a Drive
  • 14. • Consider we have a suspect USB drive to be forensically examined. • Connect USB drive to Write blocker and then to Forensic Workstation to convert the suspect drive to *.dd image file. • Find the drive using dir /dev/sd* command and dmesg | grep sd* (dmesg lists the Kernel messages including the information about drives) • The *.dd extension (for archive images, not picture images) is not a single file, but rather an archive in the form of a file. • Dcfldd (download it using sudo apt-get install dcfldd) is an enhanced version for imaging drives. It is an advance version of dd developed by the U.S. Department of Defense Computer Forensics Lab. • It has some useful features for forensic investigators such as: • On-the-fly hashing of the transmitted data. • Progress bar of how much data has already been sent. • Wiping of disks with known patterns. • Verification that the image is identical to the original drive, bit-for-bit. • Simultaneous output to more than one file/disk is possible. • The output can be split into multiple files. • Logs and data can be piped into external applications. Forensics Investigation practices-> Forensically imaging a Drive
  • 15. Forensics Investigation practices-> Forensically imaging a Drive
  • 16. • man dcfldd or dcfldd --help provides many options that can be used to format the output • Here, Input file is /dev/sdd1 and output file is located at /suspicious • This command will read ten Gigabytes from the source drive and write that to a file called driveimage.dd.aa • It will then read the next ten gigs and name that driveimage.dd.ab. • It will also calculate the MD5 hash and the sha256 hash of the ten Gigabyte chunk. • The md5 hashes will be stored in a file called md5.txt and the sha256 hashes will be stored in a file called sha256.txt. • The block size for transferring has been set to 512 bytes, and in the event of read errors, dcfldd will write zeros. Forensics Investigation practices->Dcfldd
  • 17. • Foremost is a console program to recover files based on their headers, footers, and internal data structures. • Foremost can work on image files, such as those generated by dd, Safeback, Encase, etc, or directly on a drive. foremost can search through most any kind of data without worrying about the format. • Foremost is designed to ignore the type of underlying filesystem and directly read and copy portions of the drive into the computer's memory. • It takes these portions one segment at a time, and using a process known as file carving searches this memory for a file header type that matches the ones found in Foremost's configuration file. • When a match is found, it writes that header and the data following it into a file, stopping when either a footer is found, or until the file size limit is reached. • The headers and footers can be specified by a configuration file or you can use command line switches to specify built-in file types. • These built-in types look at the data structures of a given file format allowing for a more reliable and faster recovery. • Foremost served as the basis for Scalpel, a significantly faster program to also recover deleted files & to perform forensic investigation on device images. Forensics & File Carving -> Foremost
  • 18. Forensics & File Carving -> Foremost
  • 19. Forensics & File Carving -> Foremost
  • 20. • Scalpel is an open source program for recovering deleted data originally based on foremost, although significantly more efficient. It runs on Linux and Windows. • The tool visits the block database storage and identifies the deleted files from it and recover them instantly. • Apart from file recovery it is also useful for digital forensics investigation. • By default scalpel utility has its own configuration file in ‘/etc‘ directory and full path is “/etc/scalpel/scalpel.conf” or “/etc/scalpel.conf“. • Everything is commented out (#) by default. So before running scalpel one needs to uncomment the file format that one want to recover. • However uncomment the entire file is time consuming and will generate a huge false results. • Installation comand: sudo apt-get install scalpel Forensics & File Carving -> Scalpel
  • 21. Forensics & File Carving -> Scalpel
  • 22. • Here, I uncommented for Java, zip, .dat, wav, rpm, pdf, html, doc, avi, bmp, png file formats. Forensics & File Carving -> Scalpel
  • 23. Forensics & File Carving -> Scalpel
  • 24. • bulk_extractor is a multi-threaded program that extracts features such as email addresses, credit card numbers, URLs, and other types of information from digital evidence files, disk image, or directory of files. • It is a useful forensic investigation tool for many tasks such as malware and intrusion investigations, identity investigations and cyber investigations, as well as analyzing imagery and password cracking. • The results can be easily inspected, parsed, or processed with automated tools. • bulk_extractor automatically detects, decompresses, and recursively re-processes compressed data that is compressed with a variety of algorithms. • It can process compressed data (like ZIP, PDF and GZIP files) and incomplete or partially corrupted data. • It can carve JPEGs, office documents and other kinds of files out of fragments of compressed data. It will detect and carve encrypted RAR files, XOR files etc. • It builds word lists based on all of the words found within the data, even those in compressed files that are in unallocated space. Those word lists can be useful for password cracking. • It creates histograms showing the most common email addresses, URLs, domains, search terms and other kinds of information on the drive. • In addition to the capabilities described above, bulk_extractor also includes: • A graphical user interface, Bulk Extractor Viewer, for browsing features stored in feature files and for launching bulk_extractor scans • A small number of python programs for performing additional analysis on feature files Forensics & File Carving -> Bulk_Extractor
  • 25. Forensics & File Carving -> Bulk_Extractor
  • 26. Forensics & File Carving -> Bulk_Extractor
  • 27. Forensics & File Carving -> Bulk_Extractor
  • 28. Forensics & File Carving -> Bulk_Extractor
  • 29. Forensics & File Carving -> Bulk_Extractor
  • 30. Forensics & File Carving -> Bulk_Extractor
  • 31. Forensics & File Carving -> Bulk_Extractor
  • 32. Forensics & File Carving -> Bulk_Extractor Bulk_Extractor is very powerful tool for extracting contents from file.For more information about Bulk_Extractor, go through below urls : http://tools.kali.org/forensics/bulk- extractor http://www.basistech.com/wp- content/uploads/2014/04/osdf-2011- garfinkel-bulk-extractor.pdf http://wiki.bitcurator.net/index.php?tit le=Using_Bulk_Extractor_Viewer_to_Fi nd_Potentially_Sensitive_Information_ on_a_Disk_Image https://github.com/simsong/bulk_extr actor/wiki/Installing-bulk_extractor
  • 33. Forensics & File Carving -> Hachoir-metadata • Hachoir metadata can extract metadata even from invalid/truncated files, remove duplicate values, Set priority to value, so it's possible to filter metadata (option -- level). • It archives (bzip2, gzip, zip, tar), audio (MPEG audio/MP3, WAV, Sun/NeXT audio, Ogg/Vorbis, MIDI, AIFF, AIFC, Real Audio), images (BMP, CUR, EMF, ICO, GIF, JPEG, PCX, PNG, TGA, TIFF, WMF, XCF), and video (ASF/WMV, AVI, Matroska, Quicktime, Ogg/Theora, Real Media).
  • 34. • Hachoir urwid project is a binary file explorer that uses the Hachoir library to parse files. • Using this tool, we can know the exact meaning of each bit/byte of files. Forensics & File Carving -> Hachoir-urwid
  • 35. • Remnux(https://remnux.org/) • Artifacts and Malwares(http://windowsir.blogspot.com/p/malware.html) • Unxor(https://github.com/tomchop/unxor/) • Bulk_Extractor(http://tools.kali.org/forensics/bulk-extractor) • Bulk_Extractor(http://www.basistech.com/wp-content/uploads/2014/04/osdf-2011-garfinkel- bulk-extractor.pdf) • Bulk_Extractor(http://wiki.bitcurator.net/index.php?title=Using_Bulk_Extractor_Viewer_to_Find_ Potentially_Sensitive_Information_on_a_Disk_Image) • Bulk_Extractor(https://github.com/simsong/bulk_extractor/wiki/Installing-bulk_extractor) • Scalpel(https://www.youtube.com/watch?v=5Z9JsBazOdw) • Foremost(https://www.youtube.com/watch?v=OGlRKz2PECg) • Dcfldd(http://www.forensicswiki.org/wiki/Dcfldd) • Xortool(https://github.com/hellman/xortool) • Hachoir(http://www.forensicswiki.org/wiki/Hachoir) • XorBruteForcer(http://digital-forensics.sans.org/blog/2013/05/14/tools-for-examining-xor- obfuscation-for-malware-analysis) References: