
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Xiaomi GAP sensor data parser
Used for parsing data frames from Xiaomi Mijia brand BLE sensors
In: Buffer|Array|String
Out:
result = {
productId: Number,
counter: Number,
frameControl: [],
mac: String, // Optional,
capability: CapabilityBitMask, // Optional
event: {
eventID: Number,
length: Number,
raw: String,
data: Object,
} // Optional
}
CapabilityBitMask:
| Bit | Name | Explanation |
|---|---|---|
| 0 | Connectable | True of device is cabable of establishing a connection |
| 1 | beCentral | True of device is cabable of serving as a central device |
| 2 | security | True of device is capable of data encryption |
| 3-4 | bonding | 00 - No MIOT binding, 01 - before MIOT binding, 10 - after MIOT binding |
To use this library you need to be able to discover the Xiaomi sensor advertising and then pass the Xiaomi service data (0xfe95) to it as a Buffer. For full example, see example.js.
This sensor is fully supported in normal operation. Library is able to read Temperature, Humidity and battery levels from frames.
Sources used during this project are official Xiaomi MIOT documents available on their site
FAQs
Xiaomi GAP sensor data reader
The npm package xiaomi-gap receives a total of 2 weekly downloads. As such, xiaomi-gap popularity was classified as not popular.
We found that xiaomi-gap 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.