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.
db-monitoring
Advanced tools
Modul ini dirancang untuk memantau perubahan pada database MySQL atau MariaDB secara real-time. Ketika terjadi perubahan seperti Insert, Delete, atau Update, modul ini akan memberikan notifikasi secara instan mengenai perubahan tersebut. Dengan demikian, modul ini sangat cocok digunakan untuk notifikasi ke API secara real-time, seperti untuk aplikasi obrolan langsung dan lainnya.
npm i db-monitoring
Database log Wajib diaktifkan lihat pada bagian akhir readme ini
const watcher = require('db-monitoring');
//Koneksi ke database
watcher.config({
host: 'localhost',
user: 'root',
password: 'passwordsql',
database: 'namadatabase'
});
watcher.start();
watcher.onChange(e =>{
//disini misal post ke webhook, simpan ke db, akses Api lain dll...
console.log(e)
})
Modul ini bekerja dengan memantau file log database, bukan langsung memantau database itu sendiri. Dengan demikian, performa database tidak akan terpengaruh sama sekali.
LINUX : tambahkan baris berikut di file /etc/my.cnf
[mysqld]
server-id = 1
log_bin = /var/log/mariadb/mysql-bin
log_bin_index = /var/log/mariadb/mysql-bin.index
binlog-format = row # needed for row events
# Optional
expire_logs_days = 10
FAQs
Monitorind Database MYSQL dan MARIADB
The npm package db-monitoring receives a total of 1 weekly downloads. As such, db-monitoring popularity was classified as not popular.
We found that db-monitoring demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.