Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/airbus-cert/timeliner
A rewrite of mactime, an ancient Perl tool that has (almost) 0 feature.
The mactime's capabilities to filter events based on the time are limited to only a date filter. timeliner uses a real expression engine to parse and apply the filtering logic. The following queries can be expressed using a BPF syntax:
hour >= 1 && hour < 5
c:\windows\system32
: path =~ "system32"
weekday == 'Sunday' || weekday == 'Saturday'
date >= '2018-12-31' && date <= '2018-12-01'
(hour >= 1 && hour < 5) && (weekday == 'Sunday' || weekday == 'Saturday') && (date >= '2018-12-31' && date <= '2018-12-01)
You get the idea :)
The project is still ⍺ and 👶 and is missing a few must-have features, but the killer feature is its expression engine which is ready.
$ timeliner -h
Usage of timeliner:
timeliner [options] MFT.txt
-color
Enable color output
-filter string
Event filter, like "hour > 14"
-strict
Only show the entries maching the date restrictions
$ timeliner -filter 'hour >= 1 && hour < 5' MFT.txt
2006-10-10 02:15:35: \.\Users\xxx\AppData\Local\Temp\eo117895978tm
02:16:07: \.\Users\xxx\AppData\Local\Temp\eo117895980tm
2007-05-24 03:24:43: \.\Users\xxx\AppData\Local\Temp\eo130872105tm
03:24:43: \.\Users\xxx\AppData\Local\Temp\eo113046312tm
03:24:43: \.\Users\xxx\AppData\Local\Temp\eo112784182tm
03:24:43: \.\Users\xxx\AppData\Local\Temp\eo112063273tm
There is a -strict
flag to limit the output to only the matching event. For example, for one file, its modification time could be in 2015 while the creation in 2013, if we filter events after 2015:
$ timeliner MFT.txt
2013-04-10 08:42:37: \.\Windows\System32\winevt\Logs\Setup.evtx
2015-02-16 15:58:27: \.\Windows\System32\winevt\Logs\Setup.evtx
$ timeliner -filter 'date > "2015-01-01"' MFT.txt
2013-04-10 08:42:37: \.\Windows\System32\winevt\Logs\Setup.evtx
2015-02-16 15:58:27: \.\Windows\System32\winevt\Logs\Setup.evtx
$ timeliner -strict -filter 'date > "2015-01-01"' MFT.txt
2015-02-16 15:58:27: \.\Windows\System32\winevt\Logs\Setup.evtx
Keyword | Shortcut alias | Type | Description |
---|---|---|---|
weekday | w | string | Day of the week (Sunday, Monday, ...) |
hour | h | integer | 0..24 |
min | m | integer | 0..60 |
date | d | string | ISO8601 date |
path | p | string | Path |
+ - / * & | ^ ** % >> <<
> >= < <= == != =~ !~
|| &&
'foobar'
)true false
( )
(1, 2, 'foo')
)! - ~
Read the expression engine manual to learn new tricks!
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.