{"id":20493217,"url":"https://github.com/exios66/ai-deception-framework","last_synced_at":"2026-04-17T22:07:40.059Z","repository":{"id":259169154,"uuid":"876433691","full_name":"Exios66/Ai-Deception-Framework","owner":"Exios66","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-23T01:35:46.000Z","size":275,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-23T05:48:20.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://exios66.github.io/Ai-Deception-Framework/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Exios66.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-22T00:48:19.000Z","updated_at":"2024-10-23T01:35:50.000Z","dependencies_parsed_at":"2024-10-23T07:38:34.629Z","dependency_job_id":"6f325a88-5c67-4b2b-87b4-90769d4cb365","html_url":"https://github.com/Exios66/Ai-Deception-Framework","commit_stats":null,"previous_names":["exios66/ai-deception-framework"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exios66%2FAi-Deception-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exios66%2FAi-Deception-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exios66%2FAi-Deception-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exios66%2FAi-Deception-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Exios66","download_url":"https://codeload.github.com/Exios66/Ai-Deception-Framework/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242074831,"owners_count":20068121,"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","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-11-15T17:33:56.558Z","updated_at":"2025-12-05T22:02:28.209Z","avatar_url":"https://github.com/Exios66.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Deception Framework\n\nA comprehensive framework for analyzing and detecting deception in AI systems, with integration to the Literary Vault API.\n\n## Features\n\n- AI Model Analysis\n- Deception Detection\n- Question Analysis Integration\n- Real-time Metrics Dashboard\n- Literary Vault API Integration\n- Open Source Collaboration\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/Exios66/Ai-Deception-Framework.git\ncd Ai-Deception-Framework\n```\n\n2. Install dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n3. Set up environment variables:\n\n```bash\ncp .env.example .env\n# Edit .env with your configuration:\n# GITHUB_TOKEN=your_github_token\n# DATABASE_URL=sqlite:///questions.db\n# JWT_SECRET=your_secret_key\n# CORS_ORIGINS=http://localhost:3000,https://yourdomain.com\n# API_KEY=your_openai_api_key\n```\n\n## API Endpoints\n\n### 1. Model Analysis\n\nAnalyze AI models for potential deception:\n\n```bash\n# Upload and analyze a model\ncurl -X POST \"http://localhost:8000/api/v1/analysis/model\" \\\n  -H \"Content-Type: multipart/form-data\" \\\n  -F \"file=@/path/to/model.h5\"\n```\n\nResponse:\n\n```json\n{\n  \"model_type\": \"neural_network\",\n  \"accuracy\": 0.918,\n  \"deception_points\": [\n    \"Potential bias in output layer\",\n    \"Unusual activation patterns\"\n  ],\n  \"recommendation\": \"Consider reviewing the model's training data for potential biases\",\n  \"confidence_score\": 0.85\n}\n```\n\n### 2. Deception Detection\n\nAnalyze content for potential deception:\n\n```bash\n# Analyze text content\ncurl -X POST \"http://localhost:8000/api/v1/detection/analyze\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"content\": \"Your text content here\",\n    \"context\": \"Optional context\"\n  }'\n```\n\nResponse:\n\n```json\n{\n  \"probability\": 0.342,\n  \"confidence\": 0.89,\n  \"issues\": [\n    \"Inconsistent narrative\",\n    \"Unusual language patterns\"\n  ],\n  \"recommendations\": [\n    \"Review content for consistency\",\n    \"Verify source authenticity\"\n  ]\n}\n```\n\n### 3. Literary Vault Integration\n\n#### Get Questions\n\n```bash\n# Get questions from a specific category\ncurl \"http://localhost:8000/api/v1/literary-vault/questions/astronomy?limit=5\u0026random=true\"\n```\n\nResponse:\n\n```json\n[\n  {\n    \"id\": \"q123\",\n    \"question\": \"What is the closest star to Earth?\",\n    \"correct_answer\": \"The Sun\",\n    \"options\": [\"The Sun\", \"Proxima Centauri\", \"Alpha Centauri\", \"Sirius\"]\n  }\n]\n```\n\n#### Randomize Questions\n\n```bash\n# Get randomized questions\ncurl -X POST \"http://localhost:8000/api/v1/literary-vault/questions/randomize\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"category\": \"astronomy\",\n    \"count\": 5,\n    \"seed\": 12345\n  }'\n```\n\n### 4. Question Analysis\n\nAnalyze questions for potential deception:\n\n```bash\n# Analyze a set of questions\ncurl -X POST \"http://localhost:8000/api/v1/detection/analyze-questions\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[{\n    \"id\": \"q123\",\n    \"question\": \"What is the closest star to Earth?\",\n    \"correct_answer\": \"The Sun\"\n  }]'\n```\n\n## Python Client Examples\n\n```python\nimport httpx\nimport asyncio\n\nasync def analyze_model(file_path: str):\n    async with httpx.AsyncClient() as client:\n        files = {'file': open(file_path, 'rb')}\n        response = await client.post(\n            'http://localhost:8000/api/v1/analysis/model',\n            files=files\n        )\n        return response.json()\n\nasync def detect_deception(content: str):\n    async with httpx.AsyncClient() as client:\n        response = await client.post(\n            'http://localhost:8000/api/v1/detection/analyze',\n            json={'content': content}\n        )\n        return response.json()\n\nasync def get_and_analyze_questions():\n    async with httpx.AsyncClient() as client:\n        # Get questions\n        questions = await client.get(\n            'http://localhost:8000/api/v1/literary-vault/questions/astronomy',\n            params={'limit': 5}\n        )\n        \n        # Analyze them for deception\n        analysis = await client.post(\n            'http://localhost:8000/api/v1/detection/analyze-questions',\n            json=questions.json()\n        )\n        return analysis.json()\n```\n\n## Development\n\n### Running Tests\n\n```bash\npytest tests/\n```\n\n### Local Development\n\n```bash\nuvicorn api.main:app --reload\n```\n\n### Docker Deployment\n\n```bash\ndocker build -t ai-deception-framework .\ndocker run -p 8000:8000 ai-deception-framework\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## API Documentation\n\nFull API documentation is available at:\n\n- Swagger UI: `http://localhost:8000/docs`\n- ReDoc: `http://localhost:8000/redoc`\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Literary Vault API Integration\n- OpenAI API Integration\n- Contributors and maintainers\n\n## Support\n\nFor support, please open an issue in the GitHub repository or contact the maintainers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexios66%2Fai-deception-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexios66%2Fai-deception-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexios66%2Fai-deception-framework/lists"}