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.
ectypes-postgres
Advanced tools
An ectypes strategy for node-postgres
npm install ectypes-postgres
Steps.
ectypes-postgres uses ectypes as a peer dependency, so if you want to run tests locally you will have to manually
npm install ectypes
.
Identify the connection string.
The postgres strategy connects via a connectionString that is passed into a constructor function.
For example, in the tests:
strategy = new PGStrategy(process.env['DBCONN']);
If you want the tests to run you will need to work out this value (see step 3). Similarly, if you want to develop against this lib you will need to come up with a way to identify this value.
NODE_ENV=test DBCONN=postgres://nicholasf:@localhost/keno_api_link_test mocha
See the tests, https://github.com/brianc/node-postgres and https://github.com/nicholasf/ectypes.js
Copyright (c) 2012 Nicholas Faiz
Licensed under the MIT license.
FAQs
An ectypes strategy for node-postgres
We found that ectypes-postgres 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.