Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
KATT (Klarna API Testing Tool) is an HTTP-based API testing tool for NodeJS
KATT (Klarna API Testing Tool) is an HTTP-based testing tool for Node.
Use for shooting HTTP requests in a sequential order and verifying the response. Any relevant difference between expected and actual responses will cause a failure.
The validator makes use of a few tags with special meaning:
"{{_}}"
Match anything (i.e. no real validation, only check existence).
"{{unexpected}}"
Match nothing (i.e. no real validation, only check lack of existence)
"{{>key}}"
Store value of the whole string (key must be unique within testcase)
"{{<key}}"
Recall stored value.
The "{{_}}"
tag can also be used as a JSON object's property in order to
validate any other additional properties.
By default, the builtin validator will allow additional properties in an object
structure, or additional items in an array structure. To counteract that
default, one can do {..., "{{_}}": "{{unexpected}}"}
or
[..., "{{unexpected}}"]
, effectively making a rule that no properties/items
are expected beyond the ones defined.
katt = require 'katt'
scenario = './doc/example-httpbin.apib'
params =
hostname: 'httpbin.org'
my_name: 'Joe'
your_name: 'Mike'
katt.run {scenario, params}, (err, result ) ->
console.log result
katt.run
to be called async with
scenario
params
(optional)
protocol
hostname
port
requestTimeout
scenarioTimeout
callbacks
(optional)
recall
to be called with scope
, input
, params
, callbacks
parse
to be called with headers
, body
, params
, callbacks
request
to be called async with request
, params
, callbacks
validate
to be called async with actual
, expected
, params
, callbacks
A pull-request is most welcome. Please make sure that the following criteria are fulfilled before making your pull-request:
FAQs
KATT (Klarna API Testing Tool) is an HTTP-based API testing tool for NodeJS
The npm package katt-js receives a total of 0 weekly downloads. As such, katt-js popularity was classified as not popular.
We found that katt-js 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.