
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.
Anti-db takes the idea of a database fronted by a memory cache and reverses it, for maximum performance. The storage is a POJO (plain old JS object), which is saved to disk upon program exit. Optionally, the data can be saved to disk periodically.
###Initializing an object from disk
var antidb = require('anti-db')();
var myobj = antidb.obj('./some.json');
myobj.hey = 'there';
// no need to call save(), automatically saved to disk on exit ./some.json
var myarr = antidb.obj('./somearr.json', []);
myarr.push(1970);
var antidb = require('anti-db')(10000); // every 10 sec.
var myobj = antidb.obj('./some.json');
myobj.hey = 'there';
Will not attempt any saving to disk on SIGINT EXIT etc.., and just save to disk periodically.
var antidb = require('anti-db')(period = 10000, nosaveonexit = 1}); // every 10 sec.
var myobj = antidb.obj('./some.json');
myobj.hey = 'there';
var antidb = require('anti-db')();
var myobj = antidb.obj('./some.json', {name: 'Chris', age: 21});
// Using a CSV as backing file
var antidb = require('anti-db')();
antidb.loadFunc = function(name, type){
var csv_arr = fs.readFileSync(name).toString().split(/\n/);
// put into JSON object
return obj;
}
antidb.saveFunc = function(name, o){
require('json2csv')({data: json, fields: ['car', 'price', 'color']}, function(err, csv) {
if (err) console.log(err);
fs.writeFile('file.csv', csv, function(err) {
if (err) throw err;
console.log('file saved');
});
});
}
Do this when running your app..
$ debug=1 node myapp
FAQs
Plain old JS object that saves itself to disk
The npm package anti-db receives a total of 5 weekly downloads. As such, anti-db popularity was classified as not popular.
We found that anti-db 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.