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.
jaakrecog-liveness-lib
Advanced tools
Jaakrecog Liveness© Component is an isolated component of Angular that is easy to integrate that allows you to capture the video process in order to make a liveness, which was developed by JAAK-IT.
Technologies used for the development of this library:
Jaakrecog Liveness requires Node.js v10+ to run.
Install the package:
npm install jaakrecog-liveness-lib
Declare on import of JaakrecogLivenessLibModule module
JaakrecogLivenessLibModule.forRoot({
apiUrl: 'https://dev.api.jaakrecog.com',
}),
Uses the asynchronous function openVideoCapture found in the JaakrecogLivenessLibService service
import { JaakrecogLivenessLibService } from 'jaakrecog-liveness-lib';
initCaptureVideo(): void {
this.jaakrecogLivenessSrv.openVideoCapture('your_token_here')
.then((data) => {
console.log(data);
})
.catch((error) => {
console.log(error);
});
}
The response of this promise would be a class named BestFrame
class BestFrame {
bestFrame!: string;
evaluation!: number;
facesFound!: Array<string>;
id!: string;
message!: string;
processTime!: number;
status!: boolean;
}
We can get an error and it will return an error of type ErrorResponse
class ErrorResponse {
type!: string;
message!: string;
}
Another alternative of use, that we can implement is through the selectors, for this it uses in an HTML file
<ngx-capture-video [token]="your_TOKEN" [stream]="MediaStream" (getBestFrame)="yourFunction($event)"></ngx-capture-video>
This method of use requires obtaining the userMedia previously or leaving it null for the component to raise the request for camera permissions.
Access to the library functions from the JaakrecogLivenessService
Name | README |
---|---|
getPermissions | get access camera permissions |
openVideoCapture | open video capture modal component |
verifyBestFrame | request to the server |
Contact support@jaak-it.com for any kind of assistance.
MIT
** All rights reserved JAAK-IT 2021 ©**
FAQs
This is a JAAKRECOG LIVENESS© Angular Component
We found that jaakrecog-liveness-lib 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.