Releases: rushter/hexora
Releases · rushter/hexora
v0.2.2
- Added
SuspiciousWriterule - Added
OSFingerprintrule - Improved exfiltration detection of sensitive data (os.environ)
- Added
benchmarkcommand - Added
dump-packagecommand - Improve tracking of data flow for lists, functions, dicts and so on. This enhances obfuscation detection.
- Decode base64 strings.
- Significantly Improved exec/eval detection.
Some examples of what kind of code can be deobfuscated and detected now:
def doit(m, f1, f2):
import importlib
module = importlib.import_module(m)
function_name = f1 + f2
function = getattr(module, function_name)
return function
username = doit("os", "getl", "ogin")()
[os.system][0]("ls")
dispatch = {"run": os.system}
dispatch["run"]("ls")
os.__getattribute__("system")("ls")
list(map(os.system, ["ls"]))
_ = lambda __: __import__("zlib").decompress(
__import__("base64").b64decode(__[::-1])
)
exec((_)(b"payload"))
install.run(self)
v0.2.1
- Add new rule: HX8020 SuspiciousComment
- Add handling for bytes arrays (
bytes.fromhex("41 42 43"),bytes([98, 97, 115, 104]).decode()) - Improve handling of fstrings
- Improve detection of obfuscated exec/eval (zlib/codecs/marshal/pickle),
- Add new signatures for literals (
dockersecrets,k8ssecrets,/dev/tcp) - Tune confidence levels to be less noisy
- Add basic handling of binascii.unhexlify, bytes.fromhex
- Improve
os.pathoperations likeos.path.joinandos.path.expanduser. - Handle generator expressions, e.g.
"".join(chr(x) for x in (65, 66)) - Various codebase improvements
v0.2.0
v0.1.2
v.0.1.1 pypi
Bump version