Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
fluent-plugin-eval-filter
Advanced tools
Add this line to your application's Gemfile:
gem 'fluent-plugin-eval-filter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-eval-filter
<match raw.apache.access>
type eval_filter
remove_tag_prefix raw
add_tag_prefix filtered
config1 @hostname = `hostname -s`.chomp
filter1 [[tag, @hostname].join('.'), time, record] if record['method'] == 'GET'
</match>
<match raw.apache.access>
type eval_filter
remove_tag_prefix raw
add_tag_prefix filtered
requires yaml # comma separated values
config1 @hostname = YAML.load({'hostname' => 'web01'})['hostname']
filter1 [[tag, @hostname].join('.'), time, record] if record['method'] == 'GET'
</match>
Note that this filter version does not have rewrite tag functionality. Should return [time, record].
<filter **>
type eval
filter1 "[time, record] if record['status'] == '404'"
filter2 "[time, record] if record['status'] == 'POST'"
</filter>
<filter **>
type eval
filter1 "record['status'] = record['status'].to_i; [time, record]"
</filter>
<filter **>
type eval
filter1 "record['user_id'] = record['message'].split(':').last.to_i; [time, record]"
</filter>
{'status' => '301', 'message' => 'user_id:1'}
{'status' => '302', 'message' => 'user_id:2'}
{'status' => '404', 'message' => 'user_id:3'}
{'status' => '503', 'message' => 'user_id:4'}
{'status' => '401', 'message' => 'user_id:5'}
{'status' => '301', 'message' => 'user_id:1', 'user_id' => 1}
{'status' => '302', 'message' => 'user_id:2', 'user_id' => 2}
{'status' => '404', 'message' => 'user_id:3', 'user_id' => 3}
{'status' => '503', 'message' => 'user_id:4', 'user_id' => 4}
{'status' => '401', 'message' => 'user_id:5', 'user_id' => 5}
Can not be used expression substitution.
<match raw.apache.access>
filter1 "#{tag}"
</match>
'#' Is interpreted as the beginning of a comment.
filter1 #=> "\""
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that fluent-plugin-eval-filter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.