
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@tuyapi/openapi
Advanced tools
There is another package called @tuyapi/cloud
. Why does this one exist?
The other package deals with Tuya's 'mobile' API, which has limited usefulness as Tuya seems to be phasing it out.
This package instead uses their 'OpenAPI', the solution that they recommend third-party applications use.
npm i @tuyapi/openapi
(The schema
value is your unique app ID from the Tuya console.)
const OpenAPI = require('@tuyapi/openapi');
const api = new OpenAPI({key: '10101010', secret: '1010101010', schema: '10101010'});
(async () => {
// Must be called before any other operations to get auth token
await api.getToken();
const uid = await api.putUser({
countryCode: '1',
username: 'your-username',
password: 'your-password',
usernameType: 1});
console.log(uid);
const token = await api.getDeviceToken({uid, timezone: 'America/Chicago'});
console.log(token);
console.log(await api.getDevicesByToken('EkjQjlbo'));
})();
FAQs
🚪 a wrapper for Tuya's OpenAPI
The npm package @tuyapi/openapi receives a total of 27 weekly downloads. As such, @tuyapi/openapi popularity was classified as not popular.
We found that @tuyapi/openapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.