No description
- Python 100%
| .gitignore | ||
| .python-version | ||
| main.py | ||
| pyproject.toml | ||
| README.md | ||
| riddler.py | ||
| uv.lock | ||
PAM Sphinx (Python)
This module utilizes pam_python
I don't know if there's a way to install and use external libraries in the pam_python.so provided environment, so it uses urllib.requests to manually make API calls to LLM.
This was just a proof-of-concept: demo
Usage
- Install
pam_python - Correct the
LLM_ENDPOINT,LLM_API_KEY, andmodelto appropriate values. - Copy the
main.pyto/lib/security/sphinx.py. - Write the system prompt in
/etc/sphinx.prompt. Make it output eitherACCESS_GRANTEDorACCESS_DENIEDat the end. - Add
auth [success=2 default=ignore] pam_python.so sphinx.pyto the top of/etc/pam.d/common-auth
See pam_sphinx for updated version re-written in C++