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.
homebridge-contactsensor
Advanced tools
Contact sensor interrupt GPIO input plugin for Homebridge
Contact sensor GPIO input plugin for Homebridge
npm install -g homebridge
npm install -g homebridge-contactsensor
Example of connecting three contact sensors to GPIO:
Currently the inputs are assumed to be normally-closed to ground, floating when pressed (internal pull-up resistor enabled). That is, the contact sensor will "closed" when 0, and "open" (as in, the door or whatever is open, not necessarily the electronics) when 1. TODO: configurable active-low/high
accessory
: "ContactSensor"name
: descriptive namepins
: object of names to GPIO physical pinsExample configuration:
"accessories": [
{
"accessory": "ContactSensor",
"name": "Contact Sensors",
"pins": {
"Switch A": 24,
"Switch B": 26,
"Switch C": 22
}
}
]
Creates a ContactSensor service for each pin.
What use are contact sensors? You can control other devices when they are opened or closed. For example, you could automatically turn on a light when you open your door.
MIT
FAQs
Contact sensor interrupt GPIO input plugin for Homebridge
We found that homebridge-contactsensor 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.