
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
chrome-network-logger
Advanced tools
A simple npm module for logging fetch/XHR network requests in Chrome extensions.
npm install chrome-network-logger
import { createNetworkLogger } from 'chrome-network-logger';
// Create logger
const logger = createNetworkLogger();
// Start logging
await logger.start();
// Stop logging
await logger.stop();
import { createNetworkLogger } from 'chrome-network-logger';
const logger = createNetworkLogger({
logRequests: true,
logResponses: true,
logHeaders: false, // Don't log headers
logPostData: true,
filterUrls: ['api', 'ajax'] // Only log URLs containing 'api' or 'ajax'
});
await logger.start();
// background.js
import { createNetworkLogger } from 'chrome-network-logger';
export default defineBackground(() => {
const logger = createNetworkLogger();
// Start logging when extension loads
logger.start();
// Your other extension code...
});
createNetworkLogger(options?)
Creates a new network logger instance.
Options:
logRequests
(boolean): Log requests (default: true)logResponses
(boolean): Log responses (default: true)logHeaders
(boolean): Include headers in logs (default: true)logPostData
(boolean): Include POST data in logs (default: true)filterUrls
(string[]): Only log URLs containing these stringsstart()
: Start network loggingstop()
: Stop network loggingisRunning()
: Check if logging is activegetAttachedTabs()
: Get list of monitored tabs[2024-01-15T11:30:00.000Z] Tab 123 (LinkedIn Jobs) - FETCH/XHR REQUEST: {
tabId: 123,
tabTitle: "LinkedIn Jobs",
tabUrl: "https://www.linkedin.com/jobs/search",
requestUrl: "https://www.linkedin.com/api/jobs/search",
method: "POST",
requestId: "12345",
headers: {...},
postData: "{\"keywords\":\"react developer\"}",
timestamp: "2024-01-15T11:30:00.000Z"
}
debugger
permissionMIT
FAQs
Simple Chrome extension network logging for fetch/XHR requests
The npm package chrome-network-logger receives a total of 0 weekly downloads. As such, chrome-network-logger popularity was classified as not popular.
We found that chrome-network-logger demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.