
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
stack-metrics
Advanced tools
Javascript module for writing custom metrics in Google StackDriver Monitoring API. https://cloud.google.com/monitoring/docs/
StackMetrics = require('stack-metrics')
...
async function getAnotherValue (metric) {
console.log('getAnotherValue called for metric', metric.name)
return 42
}
...
const metrics = new StackMetrics('my-project', 'testapp', interval, '../secrets/service-account-key/service-account-key.json')
const myValueMetric = metrics.createMetric('myValue', 'My test value', StackMetrics.TYPE_INT64)
metrics.createMetric('anotherValueMetric', 'Another test value', StackMetrics.TYPE_INT64, getAnotherValue)
const myRateMetric = metrics.createMetric('myRate', 'My test rate value', StackMetrics.TYPE_RATE)
setInterval(() => {
myValueMetric.writeCount(1)
myRateMetric.writeRate(1)
},
1000)
The service account file is needed when running locally, outside Google Cloud.
FAQs
Stackdriver Monitoring Custom Metrics
We found that stack-metrics 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.