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.
@lagon/runtime
Advanced tools
JavaScript Serverless Runtime
const deployment: Deployment = {
functionId: 'custom-id',
deploymentId: 'custom-id',
domains: ['localhost:3000'],
memory: 128,
timeout: 50,
env: {
hello: 'world',
},
isCurrent: true,
}
function getDeploymentCode(deployment) {
return `export async function handler(request) {
return new Response("Hello world!")
}`
}
const runIsolate = await getIsolate({
deployment,
getDeploymentCode,
})
const request: HandlerRequest = {
input: '/test',
options: {
method: 'GET',
headers: {},
body: 'request body',
},
}
const { response } = await runIsolate(request)
new Request(input [, options])
input: string
options?: RequestInit
method?: string
headers?: Record<string, string | string[] | undefined>
body?: string
method: string
headers: Record<string, string | string[] | undefined>
body: string
url: string
text(): Promise<string>
json<T>(): Promise<T>
formData(): Promise<Record<string, string>>
new Response(body [, options])
body: string
options?: ResponseInit
status?: string
statusText?: string
headers?: Record<string, string | string[] | undefined>
url?: string
body: string
headers: Record<string, string | string[] | undefined>
ok: boolean
status: number
statusText: string
url: string
text(): Promise<string>
json<T>(): Promise<T>
formData(): Promise<Record<string, string>>
fetch(resource [, init]): Promise<Response>
resource: string
init?: RequestInit
MY_VARIABLE
console.log(...args: any[])
console.error(...args: any[])
console.info(...args: any[])
console.warn(...args: any[])
console.debug(...args: any[])
FAQs
JavaScript Serverless Runtime for Lagon
The npm package @lagon/runtime receives a total of 1 weekly downloads. As such, @lagon/runtime popularity was classified as not popular.
We found that @lagon/runtime 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.