{"id":22136605,"url":"https://github.com/shieldfy/normalizer","last_synced_at":"2025-07-22T04:04:35.870Z","repository":{"id":57049355,"uuid":"74819158","full_name":"shieldfy/normalizer","owner":"shieldfy","description":"Input Normalization Package","archived":false,"fork":false,"pushed_at":"2017-04-16T09:28:31.000Z","size":51,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-25T16:07:37.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shieldfy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-26T10:32:03.000Z","updated_at":"2022-02-21T19:37:05.000Z","dependencies_parsed_at":"2022-08-23T17:50:31.928Z","dependency_job_id":null,"html_url":"https://github.com/shieldfy/normalizer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/shieldfy/normalizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shieldfy%2Fnormalizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shieldfy%2Fnormalizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shieldfy%2Fnormalizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shieldfy%2Fnormalizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shieldfy","download_url":"https://codeload.github.com/shieldfy/normalizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shieldfy%2Fnormalizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266424014,"owners_count":23926123,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-12-01T19:23:53.878Z","updated_at":"2025-07-22T04:04:35.839Z","avatar_url":"https://github.com/shieldfy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shieldfy Normaizer\n\nThis package is useful for the input normalization, before running hardcore IDS/IPS rules. It normalize the inputs to fight against WAF Bypassing techniques using obfuscation or other techniques to hide payloads.\n\n[![Packagist](https://img.shields.io/packagist/v/shieldfy/normalizer.svg?label=Packagist\u0026style=flat-square)](https://packagist.org/packages/shieldfy/normalizer)\n[![VersionEye Dependencies](https://img.shields.io/versioneye/d/php/shieldfy:normalizer.svg?label=Dependencies\u0026style=flat-square)](https://www.versioneye.com/php/shieldfy:normalizer/)\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/shieldfy/normalizer.svg?label=Scrutinizer\u0026style=flat-square)](https://scrutinizer-ci.com/g/shieldfy/normalizer/)\n[![Code Climate](https://img.shields.io/codeclimate/github/shieldfy/normalizer.svg?label=CodeClimate\u0026style=flat-square)](https://codeclimate.com/github/shieldfy/normalizer)\n[![License](https://img.shields.io/packagist/l/shieldfy/normalizer.svg?label=License\u0026style=flat-square)](https://github.com/shieldfy/normalizer/blob/develop/LICENSE)\n\n\n## Table Of Contents\n\n- [Usage](#usage)\n- [Installation](#installation)\n- [Changelog](#changelog)\n- [Support](#support)\n- [Contributing \u0026 Protocols](#contributing--protocols)\n- [Security Vulnerabilities](#security-vulnerabilities)\n- [Credits](#credits)\n- [License](#license)\n\n\n## Usage\n\nUsage is pretty easy and straightforward:\n\n```php\n$value = \"select/*!from*/information_schema.columns/*!where*/column_name%20/*!like*/char(37,%20112,%2097,%20115,%20115,%2037)\";\n\n// Run all normalizers\n$result = (new \\Shieldfy\\Normalizer\\Normalizer($value))-\u003erunAll();\necho $result;\n// select from information_schema.columns where column_name like char(37, 112, 97, 115, 115, 37) %pass%\n\n// Run single normalizer\n$result = (new \\Shieldfy\\Normalizer\\Normalizer($value))-\u003erun('comments');\n```\n\n\n## Installation\n\nInstall the package via composer:\n```shell\ncomposer require shieldfy/normalizer\n```\n\n### note about serialization\n\nSerialize / Unserialize can be danger due to its ability to convert object and it can be used to preform object injection attack.\nSo explicit normalization not allowed in php version before php 7 thats because php7 offered new options to prevent object serialization\nsee [here](http://php.net/unserialize)\n\n\n## Changelog\n\nRefer to the [Changelog](CHANGELOG.md) for a full history of the project.\n\n\n## Support\n\nThe following support channels are available at your fingertips:\n\n- [Help on Email](mailto:team@shieldfy.com)\n\n\n## Contributing \u0026 Protocols\n\nThank you for considering contributing to this project! The contribution guide can be found in [CONTRIBUTING.md](CONTRIBUTING.md).\n\nBug reports, feature requests, and pull requests are very welcome.\n\n- [Versioning](CONTRIBUTING.md#versioning)\n- [Pull Requests](CONTRIBUTING.md#pull-requests)\n- [Coding Standards](CONTRIBUTING.md#coding-standards)\n\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within this project, please send an e-mail to [security@shieldfy.com](security@shieldfy.com). All security vulnerabilities will be promptly addressed.\n\n\n## Credits\n\nThis package is based on the original converters written by Mario Heiderich \u0026 Christian Matthies the creators of [PHP IDS](https://github.com/PHPIDS/PHPIDS/) project with help from the generous security \u0026 opensource community.\n\n\n## License\n\nThis software is released under [The MIT License (MIT)](LICENSE).\n\n(c) 2016 Shieldfy Inc, Some rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshieldfy%2Fnormalizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshieldfy%2Fnormalizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshieldfy%2Fnormalizer/lists"}