{ "info": { "author": "Nahum Smith,Shan Grant", "author_email": "nahumsmithREMOVEME(AT)gmail(DOT)com,shangrantREMOVEME(AT)gmail(DOT)com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Security" ], "description": "M.O.M. Sanitizer\r\n\r\nDevelopment Version (1.0.0.dev1)\r\n\r\nNote: Please clone this repository for most recent version. [Requires: Python 3.5+]\r\n\r\nOverview\r\n\r\nFor those with compliance requirements or who are concerned with minimizing exposure of personally identifiable information, we took it upon ourselves to build something that could (M)odularly assist with (O)bfuscating digital (M)edia. The efficiency of this command line tool is that you can move this application into your production environments and scan files in place, rather relocating any sensitive data. Then ideally remove this application from the environment and report your findings as this is not meant to be an ongoing solution for mitigating out of bounds PII.\r\n\r\nDescription\r\n\r\nmom_sanitizer was created to assist with identifying any PII (Personally Identifiable Information) stored at rest in clear text, particularly when it isn't expected such as in log files. This application can scan your unencrypted data and identify potential PII.\r\n\r\nAccording to Nist Special Publication 800-122, examples of PII include, but are not limited to:\r\n\r\nNames, such as full name, maiden name, mother\u2018s maiden name, or alias\r\nPersonal identification numbers, such as social security number (SSN), passport number, driver\u2018s license number, taxpayer identification number, or financial account or credit card number\r\nAddress information, such as street address or email address\r\nWe are always trying to improve this utility, so please post your suggestions.\r\n\r\nInstallation\r\n\r\nmom_sanitizer requires Python 3.5 and the only supported platform is Linux32/64bits. Please note any difficulties encountered when using this application.\r\n\r\nusing pip package\r\n\r\ndownload compressed files from [M.O.M. Sanitizer on PyPi](include link here)\r\nUnpack and install with:\r\n\r\n$ pip install mom_sanitizer\r\n$ sanitize *args\r\nCloning from Github Repository\r\n\r\nClone this Repository\r\nMove into the project directory: $ cd mom_sanitizer\r\nInstall distribution with: $ ./setup.py install\r\nFrom anywhere on your system run program with: $ sanitize *args\r\nUsage\r\n\r\nCommands\r\n\r\nThe following command will provide the list of available command line options:\r\n\r\nArguments\r\n\r\nsource_directory:\r\n\r\nThe directory that the search traverses down the file tree from [if recursive]\r\nThe single directory the search is performed on [if non-recursive]\r\n\r\nfile_pattern:\r\n\r\nCan be either: (1) an exact file or (2) a shell pattern that will match a set of files\r\n\r\nrecursive [-r]:\r\n\r\nIf flagged will perform search traversing down the file tree from the source directory\r\n\r\nsearch terms:\r\n\r\nOne or more search terms listed one after another\r\n\r\nignore case [-i]:\r\n\r\nif flagged will set ignore_case to False. Standard setting is case insensitive\r\n\r\nmask (obfuscate) [-m]:\r\n\r\nIf flagged will replace all matched terms with a sequence of astericks.\r\nNOTHING OUTPUTTED TO SCREEN\r\nWhen flagged all files are searched and automatically obfuscated IN PLACE and saved.\r\nUSE WITH CAUTION\r\n\r\nSample Command\r\n\r\n$ sanitize /home/ubuntu/workspace/projects -r '*.txt' debug windows config\r\nSample Output\r\n\r\nPath/File: /home/ubuntu/wokspace/projects/logfile1.txt \r\n\r\n Line [3], Matched [debug] at position (4, 10)\r\n Line [7], Matched [DEBUG] at position (7, 15)\r\n Line [37], Matched [windows] at position (3, 9)\r\n\r\n Total Lines Searched: 98\r\n Total Matches: 3\r\n Total Matches By Term:\r\n\r\n debug: 2 \r\n config: 0\r\n windows: 1 \r\n\r\nPath/File: /home/ubuntu/wokspace/projects/logfile2.txt \r\n\r\n Line [5], Matched [debug] at position (4, 10)\r\n Line [77], Matched [DEBUG] at position (7, 15)\r\n Line [103], Matched [windows] at position (3, 9)\r\n Line [114], Matched [config] at position (5, 11)\r\n Line [120], Matched [config] at position (1, 6)\r\n Line [122], Matched [WINDOWS] at position (1, 7)\r\n Line [140], Matched [DEBUG] at position (3, 9)\r\n\r\n Total Lines Searched: 150\r\n Total Matches: 7\r\n Total Matches By Term:\r\n\r\n debug: 3 \r\n config: 2\r\n windows: 2 \r\n\r\nProgram Summary: \r\n\r\n Total Program Matches: 10\r\n Total Lines Searched: 248\r\n Total Files Searched: 2\r\n Total Program Matches By Term:\r\n debug: 4\r\n config: 2\r\n windows: 3\r\nReporting options\r\n\r\nAs of now output is limited to standard (seen above).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nahum-smith/mom-sanitizer", "keywords": "", "license": "UNKNOWN", "maintainer": "", "maintainer_email": "", "name": "MOM_Sanitizer", "package_url": "https://pypi.org/project/MOM_Sanitizer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/MOM_Sanitizer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nahum-smith/mom-sanitizer" }, "release_url": "https://pypi.org/project/MOM_Sanitizer/1.0.0.dev1/", "requires_dist": null, "requires_python": null, "summary": "A regex solution to simplify searching for specificstrings and offer the ability to have those masked (intended for log files to maintain Policy compliance).", "version": "1.0.0.dev1" }, "last_serial": 2881491, "releases": { "1.0.0.dev1": [ { "comment_text": "", "digests": { "md5": "079d166226713344e3efc1b1dfe6c058", "sha256": "5e68044c5095703320edbc02fb907aef27fd2fed69c4cd067e51004450d97ac6" }, "downloads": -1, "filename": "MOM_Sanitizer-1.0.0.dev1.tar.gz", "has_sig": false, "md5_digest": "079d166226713344e3efc1b1dfe6c058", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7716, "upload_time": "2017-05-17T19:16:27", "url": "https://files.pythonhosted.org/packages/8a/d0/60e76d9bd8bc9dec0478e5c9352d779e02b3af2ca6375718023026633a27/MOM_Sanitizer-1.0.0.dev1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "079d166226713344e3efc1b1dfe6c058", "sha256": "5e68044c5095703320edbc02fb907aef27fd2fed69c4cd067e51004450d97ac6" }, "downloads": -1, "filename": "MOM_Sanitizer-1.0.0.dev1.tar.gz", "has_sig": false, "md5_digest": "079d166226713344e3efc1b1dfe6c058", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7716, "upload_time": "2017-05-17T19:16:27", "url": "https://files.pythonhosted.org/packages/8a/d0/60e76d9bd8bc9dec0478e5c9352d779e02b3af2ca6375718023026633a27/MOM_Sanitizer-1.0.0.dev1.tar.gz" } ] }