
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
aws-blackbox
Advanced tools
new Blackbox()
exposes 2 methods, one for retrieving parameters from AWS
parameter store, and the other for retrieving Secrets from SSM.
When retrieving theses values on a busy lambda function, even if the values are stored in memory, you'll hit an AWS API rate-limit. Blackbox is the best of both worlds, it store the values in memory and in redis so that first it'll read from memory (as fast as can be) and falling back to redis.
import {Blackbox} from 'aws-blackbox';
const blackbox = new Blackbox({
cache: {
ttl: 100, // seconds, optional, defaults to 3,600
// Optional, node-redis options
redis: {
host: 'XXX',
port: 9879,
auth_pass: 'XXX',
}
},
// Optional, AWS credentials
credentials: {
accessKeyId: '123',
secretAccessKey: '123',
region: '123',
}
});
// non-blocking errors thrown when reading or writing to the cache
blackbox.onError(e => console.log('Cache error', e))
// Parameter object from SSM
const params = await blackbox.parameters('/blog/production'); // {DATA: 'shhh', JWT_SECRET: 'oooo'}
// Database connection strings from secret-manager
const db = await blackbox.secret(process.env.POSTGRES_SECRET_ID);
const connectionString = db.toConnectionString(); // postgres://...:...@.../...
// Direct cache access
await blackbox.set('my-key', 'my-value');
await blackbox.set('my-key', {foo: 'bar'});
await blackbox.get('my-key');
✈️ / planes.studio
FAQs
Cache (Redis and in-memory) for AWS Parameters and Secrets
The npm package aws-blackbox receives a total of 10 weekly downloads. As such, aws-blackbox popularity was classified as not popular.
We found that aws-blackbox 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.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.