{ "info": { "author": "Steve McMaster", "author_email": "mcmaster@hurricanelabs.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "splunksecrets - Encrypt and Decrypt Splunk Passwords\n====================================================\n\n|Build Status| |codecov.io|\n\n``splunksecrets`` is a tool for working with Splunk secrets offline. It\ncurrently supports encryption and decryption of passwords, but in the\nfuture will support offline recursive conversion of a Splunk\ninstallation from one splunk.secret file to another (e.g. for\nsynchronizing splunk.secret across your entire distributed\ninfrastructure).\n\nInstallation\n------------\n\n``splunksecrets`` can be installed using pip3:\n\n::\n\n pip3 install splunksecrets\n\nOr, if you're feeling adventurous, can be installed directly from\ngithub:\n\n::\n\n pip3 install git+https://github.com/HurricaneLabs/splunksecrets.git\n\nUsage\n-----\n\n::\n\n usage: splunksecrets [-h] [--splunk-secret SPLUNK_SECRET]\n [--splunk-secret-text SPLUNK_SECRET_TEXT] [-D] [--new]\n [--nosalt] [--password PASSWORD]\n\n optional arguments:\n -h, --help show this help message and exit\n --splunk-secret SPLUNK_SECRET\n --splunk-secret-text SPLUNK_SECRET_TEXT\n -D, --decrypt\n -H, --hash-passwd\n --new\n --nosalt\n --password PASSWORD\n\n * a bullet point using \"*\"\n\n - a sub-list using \"-\"\n\n- Use ``--new`` when encrypting/decrypting Splunk 7.2 secrets\n (indicated by ``$7$``)\n- Use ``--nosalt`` when encrypting/decrypting Splunk pre-7.2 secrets that are\n not hashed\n- Use ``--splunk-secret-text`` to specify ``splunk.secret`` contents on the\n command line\n- Use ``--password`` to specify password to be encrypted/decrypted on the\n command line\n\n - NOTE: when doing so, on \\*nix or other platforms running bash-like\n shells, you must escape the ``$`` in passwords, like so:\n\n ::\n\n splunksecrets --splunk-secret-text ... --password \\$1\\$.....\n\n- Use ``--hash-password`` to generate a hash for $SPLUNK_HOME/etc/passwd\n\nEncryption Schemes\n------------------\n\nSplunk passwd hashes\n~~~~~~~~~~~~~~~~~~~~\n\nSplunk password hashes are not, strictly speaking, encrypted. They're\nhashed using the standard Unix ``crypt`` function. The ``$6$`` indicates\nthat SHA-512 hashing algorithm is used. Details on SHA-crypt can be\nfound `here `__.\n\nSplunk pre-7.2\n~~~~~~~~~~~~~~\n\nSplunk prior to 7.2 used RC4 encryption for secrets, indicated in\nconfiguration files by ``$1$`` in the encrypted password. The plaintext\npassword is XOR'ed with a static salt (``DEFAULTSA``) and then RC4\nencrypted using the first 16-bytes of ``splunk.secret`` as the key. The\nresulting ciphertext is base64-encoded and prepended with ``$1$`` to\nproduce the encrypted password seen in the configuration files.\n\nSplunk 7.2\n~~~~~~~~~~\n\nStarting in Splunk 7.2, AES256-GCM is used for encryption of secrets,\nindicated in configuration files by ``$7$`` in the encrypted password.\nThe ``PBKDF2`` algorithm is used to derive an encryption key from all\n254 bytes of ``splunk.secret`` (the newline character is stripped from\nthe end of the file), using a static salt of ``disk-encryption`` and a\nsingle iteration. This 256-bit key is then used as the encryption key\nfor AES256-GCM, with a 16-byte randomly generated initialization vector.\nThe encryption produces both the ciphertext as well as a \"tag\" that is\nused as part of integrity verification. The iv, ciphertext, and tag (in\nthat order) are concatenated, base64-encoded, and prepended with ``$7$``\nto produce the encrypted password seen in the configuration files.\n\nKnown Issues\n------------\n\n- None so far!\n\nVersion History\n---------------\n\nVersion 0.4.2 (2019-09-29)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Add handling for incorrectly padded (but otherwise correct) password\n strings as a convenience (thanks rafrey-his)\n\nVersion 0.4.1 (2019-09-11)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Fix an issue in Python 3 when using ``--splunk-secret-text`` (thanks\n Joeboyc2)\n\nVersion 0.4.0 (2019-03-25)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Add ``--hash-passwd`` flag for generating Splunk password hashes\n\nVersion 0.3.1 (2019-02-06)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Fix bug when a character in the password was the same as the salt\n character\n- Add ``--splunk-secret-text`` and ``--password`` arguments for\n non-interactive use (thanks nadidsky)\n\nVersion 0.3.0 (2019-01-26)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Add ``--nosalt`` flag for pre-7.2 passwords that are not salted, such\n as ``sslPassword`` (thanks duckfez)\n\nVersion 0.2.1 (2018-10-27)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Cosmetic release to update metadata on PyPI\n\nVersion 0.2.0 (2018-10-24)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Add support for Splunk 7.2\n\nVersion 0.1.0 (2018-10-08)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Initial release\n- Support Splunk < 7.2\n\nLicense Info\n------------\n\nThe MIT License (MIT)\n\nCopyright (c) 2018 Hurricane Labs LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n.. |Build Status| image:: https://travis-ci.org/HurricaneLabs/splunksecrets.svg?branch=master\n :target: https://travis-ci.org/HurricaneLabs/splunksecrets\n.. |codecov.io| image:: https://codecov.io/gh/HurricaneLabs/splunksecrets/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/HurricaneLabs/splunksecrets", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "splunksecrets", "package_url": "https://pypi.org/project/splunksecrets/", "platform": "", "project_url": "https://pypi.org/project/splunksecrets/", "project_urls": null, "release_url": "https://pypi.org/project/splunksecrets/0.4.2/", "requires_dist": null, "requires_python": "", "summary": "splunksecrets - Encrypt / Decrypt Splunk encrypted passwords", "version": "0.4.2" }, "last_serial": 5904433, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "123de8f3778e89627c858fdc06410e0d", "sha256": "583f97017505f5639943ef945ff71583e1a5952a802f84298bf4a04367a15474" }, "downloads": -1, "filename": "splunksecrets-0.1.0.tar.gz", "has_sig": false, "md5_digest": "123de8f3778e89627c858fdc06410e0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1861, "upload_time": "2018-10-18T20:52:27", "url": "https://files.pythonhosted.org/packages/bd/5d/b47736c2e21da871bfbe698ab4cd161b77083e8c1c02154482a5751c6734/splunksecrets-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3a9b6fc7052a0fb6ad564bdc695446c4", "sha256": "0106f1a7587b5b37c1b6153d17d2d632e751bf23127445bbd8c6da69b4ea912f" }, "downloads": -1, "filename": "splunksecrets-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3a9b6fc7052a0fb6ad564bdc695446c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2268, "upload_time": "2018-10-24T16:57:03", "url": "https://files.pythonhosted.org/packages/e1/ad/3591898009a516f359fc6bdc54829c19bee64aa2f90ba967f056a85a0407/splunksecrets-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "28492267f9a599a997877acd2f70a8b5", "sha256": "adcf1533207135fe8473839c36a702f1e025e0b4f9c2016275cf11f4843bac44" }, "downloads": -1, "filename": "splunksecrets-0.2.1.tar.gz", "has_sig": false, "md5_digest": "28492267f9a599a997877acd2f70a8b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4491, "upload_time": "2018-10-27T17:27:38", "url": "https://files.pythonhosted.org/packages/20/96/9c8394d026ba140d7aad74513e56215ea9226eec15b9a36e34399fd67dc1/splunksecrets-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "76af36a6d81f1291c57a33e83dc9414b", "sha256": "8980888317910c7e9539cd7c3885ccd2419e8155991e6642ddf947a12dcfc1e3" }, "downloads": -1, "filename": "splunksecrets-0.3.0.tar.gz", "has_sig": false, "md5_digest": "76af36a6d81f1291c57a33e83dc9414b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4656, "upload_time": "2019-01-26T16:59:39", "url": "https://files.pythonhosted.org/packages/ee/01/b72825d476b55448e5d8bed4541430d2a0821702acc18b60ba52939a6172/splunksecrets-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "0d641f869199a6508530b9f57afb025c", "sha256": "3e0d313acc727f874cf3852bbe6e3b14b214852b9625f487fd9ec81846ae74e9" }, "downloads": -1, "filename": "splunksecrets-0.3.1.tar.gz", "has_sig": false, "md5_digest": "0d641f869199a6508530b9f57afb025c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4945, "upload_time": "2019-02-06T16:13:48", "url": "https://files.pythonhosted.org/packages/bf/59/06ca5c5f3900498b47064f124d57c6001cdc6bf9e6d49e863039e1c6e7b8/splunksecrets-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "1ca6d5704b0d18b4ba3c53f43497dad2", "sha256": "c7f8e79c7c4850c1ba6d154dc2a19602e5895cb9b138ca8620982ee948b71ab3" }, "downloads": -1, "filename": "splunksecrets-0.4.0.tar.gz", "has_sig": false, "md5_digest": "1ca6d5704b0d18b4ba3c53f43497dad2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5254, "upload_time": "2019-03-25T17:57:14", "url": "https://files.pythonhosted.org/packages/ef/4c/ab8202572dfb65f1537c0cf68edb39295e4f5bffe9e183ffc7e62f10b8de/splunksecrets-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "2fee193f9dbe0aa7b025bb06df4b8d30", "sha256": "f4ca6de206f482465882575a97ac5dba5e5b3f077ff4c2134f049872be9f9b91" }, "downloads": -1, "filename": "splunksecrets-0.4.1.tar.gz", "has_sig": false, "md5_digest": "2fee193f9dbe0aa7b025bb06df4b8d30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5528, "upload_time": "2019-09-11T15:36:43", "url": "https://files.pythonhosted.org/packages/45/b3/e2dc631deebd41ca850f6ca7d33238b31914b7fcd6dcfe1782b7e84666bc/splunksecrets-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "0b734e627c432434ec03847408da282b", "sha256": "e160c31a46e9a8ef85aa0dfeb5f0e9257947bc1652c7330e3f7eb1b25f68df48" }, "downloads": -1, "filename": "splunksecrets-0.4.2.tar.gz", "has_sig": false, "md5_digest": "0b734e627c432434ec03847408da282b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5743, "upload_time": "2019-09-30T02:22:29", "url": "https://files.pythonhosted.org/packages/9a/0a/bce61e12ca8948b690007778053112904ba425c9721318b1cb52a4f770f6/splunksecrets-0.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0b734e627c432434ec03847408da282b", "sha256": "e160c31a46e9a8ef85aa0dfeb5f0e9257947bc1652c7330e3f7eb1b25f68df48" }, "downloads": -1, "filename": "splunksecrets-0.4.2.tar.gz", "has_sig": false, "md5_digest": "0b734e627c432434ec03847408da282b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5743, "upload_time": "2019-09-30T02:22:29", "url": "https://files.pythonhosted.org/packages/9a/0a/bce61e12ca8948b690007778053112904ba425c9721318b1cb52a4f770f6/splunksecrets-0.4.2.tar.gz" } ] }