Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/gianpaolof/bugfender-integration-elasticsearch
This sample project shows how to copy in real time all Bugfender logs to an Elasticsearch cluster.
Usage of ./bugfender-integration-elasticsearch:
-api-url="https://dashboard.bugfender.com": Bugfender API URL (only necessary for on-premises)
-app-id=0: Bugfender app ID (mandatory)
-client-id="": OAuth client ID to connect to Bugfender (mandatory)
-client-secret="": OAuth client secret to connect to Bugfender (mandatory)
-config="": path to config file
-console-output=false: Print logs to console instead of Elasticsearch (for debugging)
-es-index="": Elasticsearch index to write to (default: logs)
-es-nodes="": List of Elasticsearch nodes (multiple nodes can be specified, separated by spaces)
-es-password="": Password to connect to Elasticsearch
-es-username="": Username to connect to Elasticsearch
-insecure-skip-tls-verify=false: Skip TLS certificate verification (insecure)
-retries=10: Number of times to retry on errors before exiting. 0 = never give up.
-state-file="": File to restore and save state, to resume sync (recommended)
-verbose=false: Verbose messages
A typical example on how to run this tool would be:
./bugfender-integration-elasticsearch -app-id=1234 -client-id=your_client_id -client-secret=your_client_secret -state-file state.json -es-index logs -es-nodes http://127.0.0.1:9200
An example Elasticsearch instance can be run with the provided docker-compose.yml
file.
If you would like to test this tool without an Elasticsearch, you can dump the logs to console:
./bugfender-integration-elasticsearch -app-id=1234 -client-id=your_client_id -client-secret=your_client_secret -state-file state.json -console-output
go get github.com/bugfender/bugfender-integration-elasticsearch
Integrations with different databases can be written if desired, by implementing the integration.LogWriter
interface.
An example of such integration is the pkg/dummy
package, which dumps the received logs to the console.
Contributions to this project are welcome, please feel free to open a pull request.
For bugs, you can open an issue in Github or submit a pull request.
For security vulnerabilities, contact our security staff.
FAQs
Unknown package
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.