--------- ReadMe:
- About ----
- Python Runtime and Package Installation First of it, it is assumed that python3 and pip3 are installed. And cvdastwrapper package is installed by pip3. The python3 command can sometimes just be "python" if your default python installation is version 3 or above. Please run "python --version" to find out. If you are running python 3 or above by default, please simply substitute the "python3" commands in examples provided in the remainder of this document.
Ensure cvdast is available and up-to date, please run: pip3 install -U cvdast
To ensure cvdastwrapper is up-to-date, please run: pip3 install -U cvdastwrapper
-
Test Directory Create a Test directory where the spec files and config file can be placed. Please feel free to rename the test directory. The subdirectory structure is important for the test run. All files generated will be put under the test directory.
-
Config: The file cv_config.yaml is used to specify the authentication API endpoint and the credentials to get the access token which is used to fuzz other APIs.
There will be information such as the URL of your test application (API endpoint), the list of the fuzz attacks to try etc. in the cv_config.yaml which can be customized as per user environment. The same file contains all of the custom variables one needs to change. Current values are provided as examples.
In the Test directory create a folder called 'specs' and place all the APIspecs (JSON version only) here.
After the test is complete (details in sections below), the summary-.html file will contain pointers to all the test results. In addition, a file called fordev-apis.csv is generated. This is a highlevel summary for consumption of a dev team. It highlight just the API endpoints that seem to "fail" the test, ie. responding positively instead of rejecting the fuzz calls. Please feel free to import such CSV report to a spreadsheet.
The test results are stored in results results/perapi results/perattack
Test can run for a long time, so one can adjust the spec and the collection of attacks in cv_config.yaml to stage each run. Test results of different test will not over-write each other. You can regenerate test report after the test run.
- Generate fuzzing test for all the specs ----
With a given cvdast version and a set of specs, you need to only run this once.
cvdastwrapper --generate-tests
A successfully run fuzzallspecs will generate as output a list of spec title names (taken from the spec's title) that can be used to update runall.py list for test control (later 4. Control test)
- Running Tests -----------
To start the tests execute below command:
cvdastwrapper test
Above cvdastwrapper also takes a "regen" argument. Regen will tells it not to run the long test, but just run the cloudVectorDAST.generate_fuzz_report to again generate the report (it copies the saved report.json from results directory)
It creates a summary-.html in the test. It contains tables allowing convenient access to all the reports
Results are saved in a directory called results
results results/perapi results/perattack
After the test is finished you can find subdirectories with the Spec names under each of these results directories. There are .html files that are the report html pointed to by the summary.
Under the perapi directory there are files that are named after the API name (chopped from the test directory long "for_fuzzing.py" name). The report.json of the test run is saved with -report.json
Metadata
Release files for cvdastwrapper 1.48.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cvdastwrapper-1.48.25.tar.gz | 614.0 kB | Without provenance | Details for cvdastwrapper-1.48.25.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cvdastwrapper-1.48.25-py3-none-any.whl | Python 3 | none | any | Details for cvdastwrapper-1.48.25-py3-none-any.whl |
Total release size: 1.2 MB
Release files / cvdastwrapper-1.48.25.tar.gz
| Download URL | cvdastwrapper-1.48.25.tar.gz |
|---|---|
| Size | 614.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89a3d3a1dc1f3c59a3281f067878cfe20e4090dc1e832afdf4c980811cf09860
|
|
BLAKE2b-256 checksum How to use checksums |
a9691d96efe78505b656847525a04415530bb62e6ee18497dc20291ce9dc6c6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.0
|
Release files / cvdastwrapper-1.48.25-py3-none-any.whl
| Download URL | cvdastwrapper-1.48.25-py3-none-any.whl |
|---|---|
| Size | 627.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1203caa2c389804e7fd61e4fd8b1b5da81ba470458c228895bc021b805132d3
|
|
BLAKE2b-256 checksum How to use checksums |
d9a2b0803a6e6cde764b131b06f693ac12f2a0fa0c6dbf27185268f50288c2b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.0
|
Security for cvdastwrapper 1.48.25
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.