
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
chai-interface
Advanced tools
chai assertions about an object's interface
$ npm install chai-interface
var chai = require('chai')
chai.should()
chai.use(require('chai-interface'))
var foo = {
bar: true,
baz: 'green',
qux: 37,
quack: function () {},
ducks: [1, 2, 3]
}
foo.should.have.interface({
bar: Boolean,
baz: String,
qux: Number,
quack: Function,
ducks: Array
})
Also, more complex, nested objects!
var user = {
name: {
first: 'Betty',
last: 'Dodson'
},
emails: {
work: 'b.dodson@megacorp.com',
home: 'butterflychica947@lol.com',
school: 'bdodso4@stateu.edu'
}
}
user.should.have.interface({
name: {
first: String,
last: String
},
emails: {
work: String,
home: String,
school: String
}
})
Interface not as expected:
{
"bars": {
"actual": "Array<String>",
"expected": "Array<Number>",
"actualValue": [
"a",
"b",
"c"
]
}
}
chai-interface
does interface checking using tracery
jden jason@denizac.org @leJDen
Please submit pull requests and issues through github.
MIT (c) 2013 Agile Diagnosis, Inc. see LICENSE.md
FAQs
chai assertions about an object's interface
The npm package chai-interface receives a total of 2,867 weekly downloads. As such, chai-interface popularity was classified as popular.
We found that chai-interface 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.