![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@nrfcloud/models
Advanced tools
Readme
Contains model definitions for the REST API.
Install dependencies
npm i
Run the tests
npm test
All entities require a 'context' which explicitly types their JSON representation. The version is used to express schema changes per entity. This is inspired by JSON-LD.
Describes entry points of an API.
{
"__context": "https://github.com/nRFCloud/models#ApiIndex",
"__contextVersion": 1,
"links": [
{
"__context": "https://github.com/nRFCloud/models#Link",
"__contextVersion": 1,
"href": "https://foo.iot.us-east-1.amazonaws.com",
"subject": "https://aws.amazon.com/iot-platform/",
"rel": "production"
},
{
"__context": "https://github.com/nRFCloud/models#Link",
"__contextVersion": 1,
"href": "https://bar.execute-api.us-east-1.amazonaws.com/prod",
"subject": "https://nrfcloud.com/",
"rel": "production"
}
]
}
JSON Schema: ApiIndex.schema.json
Source: ApiIndex.ts
Describes a link.
{
"__context": "https://github.com/nRFCloud/models#Link",
"__contextVersion": 1,
"href": "https://api.nrfcloud.com/stage/custom-cards/foo/some-id",
"subject": "https://github.com/nRFCloud/models#CustomCard",
"rel": "next"
}
JSON Schema: Link.schema.json
Source: Link.ts
Describes the status of the system.
{
"__context": "https://github.com/nRFCloud/models#Status",
"__contextVersion": 1,
"maintenance": false,
"version": "1.0.0-beta.1",
"time: "2017-10-02T11:05:46.793Z"
}
JSON Schema: Status.schema.json
Source: Status.ts
Describes a list.
{
"__context": "https://github.com/NordicPlayground/nrfcloud-custom-cards-client#List",
"__contextVersion": 1,
items: [
{
"__context": "...",
"__contextVersion": ...,
...
}
],
total: 1,
links: [
{
"__context": "https://github.com/NordicPlayground/nrfcloud-custom-cards-client#Link",
"__contextVersion": 1,
"href": "...",
"subject": "...",
"rel": "next"
}
]
}
JSON Schema: Link.schema.json
Source: Link.ts
All error responses are expressed using this message format. See https://datatracker.ietf.org/doc/draft-ietf-appsawg-http-problem/.
{
"__context" : "https://www.ietf.org/id/draft-ietf-appsawg-http-problem-01.txt",
"__contextVersion" : 1,
"type" : "https://github.com/nRFCloud/models#EntityNotFoundError",
"title" : "Entity not found",
"status" : 404,
"detail" : "EntityNotFoundError: Custom card \"foo\" does not exist!"
}
JSON Schema: HttpProblem.schema.json
Source: HttpProblem.ts
Thrown if the access to a resource was denied.
Thrown if the request was malformed.
Thrown if a requested resource could not be found.
Thrown if an unexpected internal error happened.
FAQs
Unknown package
The npm package @nrfcloud/models receives a total of 174 weekly downloads. As such, @nrfcloud/models popularity was classified as not popular.
We found that @nrfcloud/models 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 researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.