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.
aliyun-sls-stream
Advanced tools
阿里云 SLS PutLogs Stream
const AliyunSlsStream = require('aliyun-sls-stream')
const stream = new AliyunSlsStream({
accessKeyId: 'your_very_secured_access_key_id',
secretAccessKey: 'your_very_secured_secret_access_key',
endpoint: 'an_aliyun_endpoint_for_sls', // refer to https://help.aliyun.com/document_detail/29008.html?spm=5176.doc28984.2.5.CMkSh1 for more details
project: process.env.ALIYUN_PROJECT,
logStore: process.env.ALIYUN_LOG_STORE
})
stream.write('Hello from the other side')
stream.write({ foo: 'bar' })
bunyan
使用const bunyan = require('bunyan')
const AliyunSlsStream = require('aliyun-sls-stream')
const log = bunyan.createLogger({
name: 'foo',
streams: [{
type: 'raw',
stream: new AliyunSlsStream({
accessKeyId: 'your_very_secured_access_key_id',
secretAccessKey: 'your_very_secured_secret_access_key',
endpoint: 'an_aliyun_endpoint_for_sls', // refer to https://help.aliyun.com/document_detail/29008.html?spm=5176.doc28984.2.5.CMkSh1 for more details
project: process.env.ALIYUN_PROJECT,
logStore: process.env.ALIYUN_LOG_STORE
}),
reemitErrorEvents: true
}],
level: 'debug'
})
log.debug('foobar')
log.debug({ foo: 'bar' }, 'foobar')
log.debug({ foo: 'bar' }, 'foobar: %s', ['foo', 'bar'])
FAQs
阿里云 SLS PutLogs Stream
The npm package aliyun-sls-stream receives a total of 0 weekly downloads. As such, aliyun-sls-stream popularity was classified as not popular.
We found that aliyun-sls-stream 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.