{"id":27088960,"url":"https://github.com/devops-works/phpsecscan","last_synced_at":"2025-04-06T06:36:48.490Z","repository":{"id":64302501,"uuid":"330143892","full_name":"devops-works/phpsecscan","owner":"devops-works","description":"PHP vulnerability scanner (standalone or as a webserver) using FoP advisories","archived":false,"fork":false,"pushed_at":"2023-02-18T11:27:12.000Z","size":78,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-20T10:15:24.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devops-works.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-16T11:09:11.000Z","updated_at":"2023-06-27T08:05:19.000Z","dependencies_parsed_at":"2024-06-20T09:24:13.612Z","dependency_job_id":"93d426fa-3757-443c-9527-3737ccb204e0","html_url":"https://github.com/devops-works/phpsecscan","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fphpsecscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fphpsecscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fphpsecscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fphpsecscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devops-works","download_url":"https://codeload.github.com/devops-works/phpsecscan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445686,"owners_count":20939953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-06T06:36:46.147Z","updated_at":"2025-04-06T06:36:48.480Z","avatar_url":"https://github.com/devops-works.png","language":"Go","readme":"# phpsecscan\n\nThis will help you check your PHP project dependencies against the [CVE\ncompiled](https://github.com/FriendsOfPHP/security-advisories) by FriendsOfPHP.\n\nIt will analyze your `composer.lock` file and show if some versions are\naffected by a vulnerability.\n\n## Install\n\nYou can install `phpsecscan` using:\n\n- binenv (https://github.com/devops-works/binenv)\n- using binaries in the [releases page](https://github.com/devops-works/phpsecscan/releases)\n- using the docker image (https://hub.docker.com/r/devopsworks/phpsecscan)\n\n## Build\n\n### Local\n\n```bash\nmake\n```\n\n### Docker\n\n```bash\nexport VERSION=$(git describe --tags --always --dirty)\ndocker build . -t name/phpsecscan:${VERSION} --build-arg version=${VERSION} --build-arg builddate=$(date -u '+%Y%m%d.%H%M%S')\ndocker tag name/phpsecscan:${VERSION} name/phpsecscan:latest\n```\n\n## Usage\n\n### Command line usage\n\nCan be run standalone of as a server.\n\nUsage:\n\n```bash\nphpsecscan\n    [-port 8000]\n    [-repo https://github.com/FriendsOfPHP/security-advisories.git]\n    [-gitdir /tmp/XYZ]\n    [-interval 600]\n    [file]\n```\n\nOptions:\n\n- `gitdir` (defaults to some random temp dir): path to store CVE git checkout\n- `h` or `help`: help usage\n- `port` (default \"8080\"): server port\n- `repo` (default \"https://github.com/FriendsOfPHP/security-advisories.git\"): CVE repository URL\n- `server` (default false): start as a web server\n- `interval` (default 600): refresh interval to sync CVEs\n\n### Docker\n\n```bash\ndocker run -v /path/to/composer.lock:/composer.lock devopsworks/phpsecscan /composer.lock\n```\n\n## Example\n\n### Single run mode\n\n```bash\n./phpsecscan composer.lock\n```\n\n### Starting the server\n\n```bash\n./phpsecscan -gitdir ./cve\n```\n\n### Checking a local composer\n\n```bash\ncurl localhost:8080/check --data @/path/to/project/composer.lock\n```\n\n## TODO\n\n- [ ] github app\n- [ ] gitlab app\n- [ ] Vue.js front end\n- [ ] prometheus exporter\n\n## See also\n\nhttps://github.com/sensiolabs/security-checker\nhttps://snyk.io/docs/snyk-for-php\nhttps://github.com/marketplace/sonatype-depshield\nhttps://ossindex.sonatype.org/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-works%2Fphpsecscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevops-works%2Fphpsecscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-works%2Fphpsecscan/lists"}