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.
fatoora-ksa
Advanced tools
A simple nodejs module to generate the Qrcode image /value for the E-invoicing (Fatoora) to generate tax invoice. Values are to be given as tagged list and then generate the values in a 2 step process.
$ npm install fatoora-ksa
This module targets Node.js 6 or later and not in the browser. Do add a request if you need to do it in the browser.
const fatooraKsa = require('fatoora-ksa');
// Create an object with the details below
const obj = {
seller : 'Valuetens Records',
vatRegNumber : '310122393500003',
timeStamp : '2021-11-29T10:55:00Z',
totalAmount : '100',
vatAmount : '15'
}
const hexString = fatooraKsa.toHex(obj);
console.log(hexString);
//=> 010c426f6273205265636f726473020f3331303132323339333530303030330314323032312d31312d32395431303a35353a30305a0404313030300503313530
const base64String = fatooraKsa.toBase64(obj);
console.log(base64String);
//=> AQxCb2JzIFJlY29yZHMCDzMxMDEyMjM5MzUwMDAwMwMUMjAyMS0xMS0yOVQxMDo1NTowMFoEBDEwMDAFAzE1MA==
// Below method returns a promise
const qrCode = await fatooraKsa.toQrCode(obj);
// Will return a base64 image
FAQs
E-invoicing module that generates hex, base64 values and qr code as image
The npm package fatoora-ksa receives a total of 0 weekly downloads. As such, fatoora-ksa popularity was classified as not popular.
We found that fatoora-ksa 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.