/Lantern-Shark

Lantern Shark is a static file analyzer written in HTML and Javascript.

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Lantern Shark

Lantern Shark is a file analyzer written in HTML and JavaScript. It can extract metadata and embedded script code from multiple file types. It also attempts to identify suspicious and malicious attributes of various file types.

A live demo of this project can be viewed here.

Additional Features

  • Deobfuscation of extracted scripts via inserted comments. Look for the comment character followed by the 🦈 shark emoji.
  • Excel 4.0 Macro emulation and deobfuscation.

Notes

This project is under heavy development, and currently only supports a small number of file types. See the table below for a list of supported file types and types of data extracted from each.

File Extension File Type ID File Attributes Components List Metadata Script Detection & Extraction
ACE X X
DLL X
DOCX X X X X X
EXE X X
GZ X X
ISO - ISO 9660 X X X X
ISO - UDF X X X X
JPEG X X
LNK X X X X
MSG X X X X
PDF X X Partial X X
PNG X X X
PPTX X X X X
RAR X X
RTF X X X
XLS X X X X
XLSB X X X X X
XLSX X X X X X
XML X
ZIP X X X
ZLIB X

CVE Detection

Lantern Shark should be able to detect the following CVEs:

  • MSG
    • CVE-2023-23397
  • PDF
    • CVE-2019-7089
    • CVE-2018-4993
  • RTF
    • CVE-2017-11882 (Limited Detection)
  • XLSB, XLSM, XLSX
    • CVE-2017-11882 (Limited Detection)

Dependencies

Lantern Shark uses the following libraries:

Credits