
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
This tool allows you to perform security scans on various types of APIs, including REST, SOAP, and GraphQL. It provides basic and advanced scans and integrates with Swagger for automated testing.
Install directly using pip from PyPi:
pip install apisec
Clone the repository and install the package using pip
:
git clone https://github.com/yourusername/apisec-tool.git
cd apisec-tool
pip install .
After installing apisec, run below command to install all dependecies and sync path variables.
apisec -i
Basic Scan: Perform a basic security scan on a domain:
apisec -bs "<domain name>"
Advanced Scan: Perform an advanced scan on a specific API endpoint:
apisec -ae "<API endpoint>" -ah "<headers in JSON format>"
Using Swagger JSON File: Scan APIs based on Swagger documentation:
apisec -su "<API server url>" -sf "<url or path to swagger.json file>"
SOAP Scan: Test a SOAP API by specifying its endpoint:
apisec -s "<SOAP API endpoint>
GraphQL Scan: Test a GraphQL API for security vulnerabilities:
apisec -g "<GraphQL API endpoint>"
To save the scan results to a JSON file for later analysis, use the -o option:
apisec -bs "<domain name>" -o "scan_results.json"
This project is licensed under the MIT License. See the LICENSE file for more details.
FAQs
API Security Testing Tool
We found that apisec demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.