EyeON Modules¶
eyeon.observe module¶
eyeon.observe.Observe makes an observation of a file. An observation will output a json file containing unique identifying information such as hashes, modify date, certificate info, etc. See the Observe class doc for full details.
- class eyeon.observe.Observe(file: str)[source]¶
Bases:
objectClass to create an Observation of a file.
Parameters:¶
file (str): Path to file to be scanned.
Required Attributes:¶
- bytecountint
size of file
- filenamestr
File name
- magicstr
Magic byte descriptor
- md5str
md5sumof file- modtimestr
Datetime string of last modified time
- observation_tsstr
Datetime string of time of scan
- permissionsstr
Octet string of file permission value
- sha1str
sha1sumof file- sha256str
sha256sumof file- ssdeepstr
Fuzzy hash used by VirusTotal to match similar binaries.
- configdict
toml configuration file elements
Optional Attributes:¶
- compilerstr
String describing compiler, compiler version, flags, etc.
- hoststr
csv string containing intended install locations
- imphashstr
Import hash for Windows binaries
- telfhashstr
Telfhash for ELF Linux binaries
- detect_it_easystr
Detect-It-Easy output.
- signaturesdict
Descriptors of signature information, including signatures and certificates. Only valid for Windows
- metadatadict
Windows File Properties – OS, Architecture, File Info, etc.
- set_imphash(file: str) None[source]¶
Sets import hash for PE files. See https://www.mandiant.com/resources/blog/tracking-malware-import-hashing.
- set_issuer_sha256() None[source]¶
Parses the certificates to build issuer_sha256 chain The match between issuer and subject name is case insensitive, as per RFC 5280 4.1.2.4 section 7.1
- set_signatures(file: str) None[source]¶
Runs LIEF signature validation and collects certificate chain.
- set_ssdeep(file: str) None[source]¶
Computes fuzzy hashing using ssdeep. See https://ssdeep-project.github.io/ssdeep/index.html.
- set_telfhash(file: str) None[source]¶
Sets telfhash for ELF files. See https://github.com/trendmicro/telfhash.