🦊 TempFox
Description
TempFox is a streamlined Python tool that manages AWS credentials and automates CloudFox security checks. It elegantly handles both long-term (AKIA) and temporary (ASIA) AWS credentials.
_____ _____
|_ _|__ _ __ ___ _ _| ___|____ __
| |/ _ \ '_ ` _ \| '_ \ |_ / _ \ \/ /
| | __/ | | | | | |_) | _| (_) > <
|_|\___|_| |_| |_| .__/|_| \___/_/\_\
|_|
Key Features
- 🔄 Automatic AWS CLI installation and version detection
- 🔑 Support for both AKIA (long-term) & ASIA (temporary) credentials
- ⏰ Token expiration handling with auto-renewal option
- ✅ Smart credential format validation and verification
- 🔍 Environment variable detection and reuse
- 🧪 AWS connection testing with detailed identity information
- 🦊 Seamless CloudFox integration for security checks
Installation
There are several ways to install TempFox:
Using pip (Recommended)
pip install tempfox
From Source
git clone https://github.com/alfdav/tempfox.git
cd tempfox
pip install -e .
Dependencies
- Python 3.6+
- boto3 >= 1.26.0
- AWS CLI (automatically installed if missing)
Quick Start
- Basic Usage:
tempfox
- Using with AWS Access Key:
# Long-term credentials (AKIA)
export AWS_ACCESS_KEY_ID=AKIAXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
tempfox
# Temporary credentials (ASIA)
export AWS_ACCESS_KEY_ID=ASIAXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export AWS_SESSION_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
tempfox
- Auto-renewal Mode:
tempfox --auto-renew
- Run CloudFox Security Checks:
# After credentials are configured
tempfox --cloudfox
- Check Credential Status:
tempfox --status
Prerequisites
- Python 3.6 or higher
- Linux operating system
- Internet connection
- Sudo privileges (for AWS CLI installation if needed)
License
MIT License
Copyright (c) 2024 David Diaz
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Disclaimer
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, AUTHORS, OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
USE OF THIS SOFTWARE IS ENTIRELY AT YOUR OWN RISK. THE AUTHORS ASSUME NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR OMISSIONS IN THE CONTENT OF THIS SOFTWARE. THE INFORMATION CONTAINED IN THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS WITH NO GUARANTEES OF COMPLETENESS, ACCURACY, USEFULNESS OR TIMELINESS.
By using this software, you acknowledge and agree that you are using it at your own risk and discretion. The authors shall not be held responsible for any security breaches, data loss, or any other damages resulting from the use of this software.
Made with ❤️ by David
Metadata
Release files for tempfox 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tempfox-1.0.1.tar.gz | 9.5 kB | Without provenance | Details for tempfox-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tempfox-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for tempfox-1.0.1-py3-none-any.whl |
Total release size: 17.5 kB
Release files / tempfox-1.0.1.tar.gz
| Download URL | tempfox-1.0.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff0e0ce09e9936893c4fd2ae133cef917dc1d264a37430b589011104369ad38a
|
|
BLAKE2b-256 checksum How to use checksums |
0c0b812e7855a77cbde2ae8c51003d2bcbef53e315fd3b3d61c8162251591b5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / tempfox-1.0.1-py3-none-any.whl
| Download URL | tempfox-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
167fc3273ba0fe2a7f3d66118ce210d5846c3addd28a97dccd6581a04149cb86
|
|
BLAKE2b-256 checksum How to use checksums |
4726c04e02aadcbba8c0c0ebd9b5ed027c9e52f3503d7a2343fa186518f76d61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Security for tempfox 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.