
Research
/Security News
npm Package Uses Prompt Injection and Token Flooding to Disrupt AI Malware Scanners
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.
verify-img-code
Advanced tools
npm install verify-img-code
vite 对 webpack 的支持有一定局限,若报错,不要惊慌,换 vite
模板中:
<VerifyCode ref="verifyRef"></VerifyCode>
js 中:
import { VerifyCode } from 'verify-img-code'
登录注册
const username = ref('')
const password = ref('')
const verify = ref('')
let T = ref('login')
const verifyRef = ref(null) // 验证码这个子组件
const title = ref('登录')
const onSubmit = async() => {
if (T.value === 'login') {
// console.log(verifyRef.value.imgCode); // 验证码
const {data} = await axios.post('/user/login', {
username: username.value,
password: password.value
})
Toast.success('登陆成功');
localStorage.setItem('token',data.token)
router.push('/home')
}else {
if (verify.value != verifyRef.value.imgCode) {
Toast.fail('验证码错误!');
return
}
// 发请求
const {data} = await axios.post('/user/register', {
username: username.value,
password: password.value
})
console.log(data);
Toast.success('注册成功');
T.value = 'login'
}
}
FAQs
verifyCode
The npm package verify-img-code receives a total of 3 weekly downloads. As such, verify-img-code popularity was classified as not popular.
We found that verify-img-code demonstrated a not healthy version release cadence and project activity because the last version was released 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
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.