Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Detection rules to look for OpenSSL 3.x usage and exploitation

License

Notifications You must be signed in to change notification settings

CiscoCXSecurity/openssl3-nov2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rolling 2 day view of updates from this repo

Public trackers

Kick banning attacks at the perimeter

  • TBC

Paths to check

UNIX

  • /opt
  • /usr/local
  • /home

OS X

(see also UNIX)

  • /Applications
  • /Library
  • /Users/*/Applications
  • /Users/*/Library

Windows

  • c:\Program Files
  • c:\Program Files (x86)
  • c:\Documents and Settings
  • c:\Users

Dirty checks

  • find /path/to/check -type f -iname "lib*ssl*.so*" -o -iname "lib*crypt*.so*" -o -iname "lib*ssl*.a*" -o -iname "lib*crypt*.a*" 2>/dev/null | while read filename; do echo $filename,`strings $filename | grep "OpenSSL 3" | wc -l`; done
  • osqueryi "SELECT distinct processes.name, process_open_sockets.local_port, process_memory_map.path as ssllib from process_memory_map join process_open_sockets USING (pid) join processes USING (pid) WHERE (process_memory_map.path LIKE '%lib%ssl%' OR process_memory_map.path LIKE '%lib%crypt%') AND process_memory_map.permissions LIKE '%x%' AND process_open_sockets.local_port <> 0;"
  • Get-ChildItem -Recurse -File -ErrorAction SilentlyContinue -Path "C:\" -Filter "lib*ssl*"
  • Correlation with other mission critical packages e.g. OpenSSH (https://twitter.com/j0hn__f/status/1587067842515673090): OpenSSH >= 8.9 is a relatively good indicator that the OS also ships with OpenSSL 3
  • Hunt for "OpenSSL/3.*" in SIEM, WAF logs etc

Yara rules

Running the rules:

  • yara -r yara/... /path/to/check

Example here:

  • TBC

Personal

  • TBC

Source code to check

About

Detection rules to look for OpenSSL 3.x usage and exploitation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published