
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
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.
background-location
Advanced tools
The plugin to capture geolocation in background (Only Android Support)
npm install background-location --save
npx cap sync
initial(Current to Capacitor 2)Migrate to capacitor 3Is no necesarty init plugin in MainActivity.javaStable Version for apps below capacitor 3Is no necesarty init plugin in MainActivity.javaStable Version for apps below capacitor 6Is no necesarty init plugin in MainActivity.javaFor version 1.x add line in MainActivity.java:
add(T2BackgroundLocation.class);
For version 2.x this is not necessary.
import { T2BackgroundLocation } from 'background-location';
const backgroundLocation = async () => {
const image = await T2BackgroundLocation.startBackgroundService({
driverId: <value>,
driverName: <value>,
pin: <value>,
token: <value>,
url: <value>,
socketUrl: <value>,
socketActive: <value>,
updateInternal: <value>,
});
};
startBackgroundService(options: T2BackgroundLocationOptions): Promise<any>;
Init service in background
| Param | Type |
|---|---|
options | T2BackgroundLocationOptions |
Returns: Promise<any>
stopBackgroundService(): Promise<any>;
Stop service in background
Returns: Promise<any>
| Prop | Type | Description | Since |
|---|---|---|---|
driverId | number | 1.0.0 | |
driverName | string | 1.0.0 | |
pin | number | 1.0.0 | |
token | string | 1.0.0 | |
url | string | 1.0.0 | |
socketUrl | string | 1.0.0 | |
socketActive | boolean | 1.0.0 | |
updateInternal | number | 1.0.0 |
FAQs
BackgroundLocation
We found that background-location demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
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.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.