Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
检索文章中的敏感词
$ gem install sensitive_words
# -*- coding: utf-8 -*-
require 'sensitive_words'
#首先载入敏感词文件
SensitiveWords.load_dict("#{__dir__}/dictionary/dict1.txt")
SensitiveWords.load_dict("#{__dir__}/dictionary/dict2.txt") #可以载入多次
article = "习近平周永暴干康BLOWJOBjeffrey哈哈哈流氓政府"
#找出文章中的所有敏感词
words = SensitiveWords.sensitive_words(article)
puts words.inspect # => ["习近平", "暴干", "BLOWJOB", "流氓政府"]
#或者只需要指定数量上限的敏感词
words = SensitiveWords.sensitive_words(article,2)
puts words.inspect # => ["习近平", "暴干"]
说明: 纯文本,一行一个
习近平
周永康
暴干
BLOWJOB
流氓政府
yeah.happy coding:)
FAQs
Unknown package
We found that sensitive_words 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.