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.
github.com/julien4218/cross-account-query
A command line tool that execute multiple NRQL query accross environment and accounts.
Base query fetches the initial dataset. Column queries adds scalar data for each row in the initial dataset.
Output is displayed as CSV
Config example:
base:
api_key: env::NEW_RELIC_MY_API_KEY
account_id: 123456789
region: staging
query: SELECT something with NRQL
select_fields:
- account_id:AccountID
- customer_user_id:UserID
- timestamp
- timestamp:CopyDateUTC
columns:
-
api_key: env::NEW_RELIC_MY_API_KEY
account_id: 987654321
region: us
query: SELECT something else with NRQL
select_fields:
- is_using_something_else:IsUsingSomethingElse
api_key
should be stored as environment variable and referred in the config as env::MY_KEY_NAME
config column query can be executed in batch mode, which execute much faster instead of an N+1 execution plan to leverage batching, you'll want to do the following:
can_batch: true
optionWHERE
clause in the form of ...WHERE field1 IN (data::my_field)...
so that all the field values previously queried can be injectedFor example:
base:
api_key: env::NEW_RELIC_MY_API_KEY
account_id: 123456789
region: staging
query: SELECT something with NRQL
select_fields:
- account_id:AccountID
- customer_user_id:UserID
- timestamp
- timestamp:CopyDateUTC
columns:
-
api_key: env::NEW_RELIC_MY_API_KEY
account_id: 987654321
region: us
can_batch: true
query: FROM MyTable SELECT uniqueCount(1) as 'has_data', min(customer_user_id) as 'customer_user_id' WHERE customer_user_id in (data::customer_user_id) SINCE 1 week ago facet nrAccountId as 'account_id'
select_fields:
- is_using_something_else:IsUsingSomethingElse
go test -v ./ ./...
go run . config.yml
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
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.