target / strelka

Real-time, container-based file scanning at enterprise scale
Other
878 stars 113 forks source link

Adding in ScanJNLP #454

Closed skalupa closed 6 months ago

skalupa commented 6 months ago

Describe the change Originally developed by Ryan Borre and Paul Hutelmyer, ScanJnlp analyzes Java Network Launch Protocol (JNLP) files. From the documentation:

JNLP files, used by Java Web Start technology, can launch Java applications from a web browser. While facilitating legitimate applications, they can also be abused for malicious purposes such as distributing malware or executing phishing attacks.

This PR ports the ScanJnlp scanner as well as tests with relevant fixtures to open source Strelka while also updating the scanner table with relevant information on this scanner.

Describe testing procedures This scanner has been running internally for some time, though after porting the scanner, the scanner was tested with a local build of the application.

Sample output Results of the scanner runnin appears as follows:

"jnlp":{2 items
"elapsed":float0.000278
"resource":string"https://example.com/uplib.jar"
}

Checklist

phutelmyer commented 6 months ago

Works well. Thought for a second we were missing the JNLP File taste in yara, but it looks like its been in there for quite some time. This makes that functional.

Thank you!