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.
bitbucket.org/g12pb/fivewest-api
Using OpenAPI specification file: https://api.fivewest.co.za/unified-openapi.json
This config in json is not compatible with oapi-codegen, and returned error:
error loading swagger spec in unified-openapi.json
: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into field Schema.exclusiveMinimum of type bool exit status 1
generate.go:3: running "go": exit status 1
Generate config in YAML:
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:latest-release generate \
-i /local/unified-openapi.json \
-g go \
-o /local/openapi-generator-client
# this produces ./openapi-generator-client/api/openapi.yaml
# edit file above, remove parameter type 'Id_1'
# use result as ./client/api.yaml
# only required for first time
go mod init bitbucket.org/g12pb/fivewestapi
go get github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
# generate client
go generate ./client
go mod tidy
FAQs
Unknown package
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.