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.
sec-data-fetcher
Advanced tools
An npm library to fetch SEC data from all supported endpoints with rate limiting.
An npm library to fetch SEC data from all supported endpoints with rate limiting, written in TypeScript.
npm install sec-data-fetcher
import { SECClient } from 'sec-data-fetcher';
// Initialize the SECClient with your User-Agent
const secClient = new SECClient({
userAgent: 'Your Company Name contact@yourcompany.com',
});
(async () => {
// Lookup CIK
const cik = await secClient.cikLookup('AAPL');
console.log('CIK:', cik);
if (cik) {
// Get Company Data
const companyData = await secClient.getCompanyData(cik);
console.log('Company Data:', companyData);
// Get Reports
const reports = await secClient.getReports(cik);
console.log('Reports:', reports);
// Parse a filing from URL
if (reports.length > 0) {
const filingUrl = `https://www.sec.gov/Archives/edgar/data/${parseInt(
cik,
10,
)}/${reports[0].accessionNumber.replace(/-/g, '')}/${
reports[0].primaryDocument
}`;
const filingObject = await secClient.getObjectFromUrl(filingUrl);
console.log('Filing Object:', filingObject);
}
}
})();
Constructor
new SECClient(options: SECClientOptions)
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
MIT License. See the LICENSE file for details.
This library is provided as-is and is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. Use this library responsibly and in compliance with the SEC’s Terms of Use.
FAQs
An npm library to fetch SEC data from all supported endpoints with rate limiting.
We found that sec-data-fetcher demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.