Skip to content

adamculp/php-security-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-security-checker

The objective is to provide a quick report of known PHP security alerts, based on the contents from a given composer.lock file, in an easy to use Docker image.

More specifically this image provides an easy interface to use:

  • sensiolabs/security-checker

IMPORTANT: This tool makes no claims of being an exhaustive reference of security issues. As such, it is merely a tool to highlight possibilities, and should not be relied upon as a sole reference.

Usage

Windows users: The use of "$PWD" for present working directory will not work as expected, instead use the full path. Such as "//c/Users/adamculp/project".

$ cd </path/to/desired/directory>
$ docker run -it --rm -v "$PWD":/app -w /app adamculp/php-security-checker:latest \
php /usr/local/lib/php-security-checker/vendor/bin/security-checker security:check \
./composer.lock  > ./security_check_results.txt

In the example above, Docker runs an interactive terminal to be removed when all is completed, and mounts the current host directory ($PWD) inside the container, sets this as the current working directory, and then loads the image adamculp/php-security-checker. Following this we call on security-checker to run the security:check on the composer.lock in the current working directory, and finally, output the results to a text file in the current working directory.

This is the most common use case, enabling the user to run the tool on a composer.lock file located anywhere on the host system by altering the path used in the command.

Enjoy!

Please star, on Docker Hub and/or Github, if you find this helpful.

About

Docker image to provide a report of PHP Security alerts, from a composer.lock file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy