{"id":38535460,"url":"https://github.com/dalpan/Pretexta","last_synced_at":"2026-01-25T03:00:45.414Z","repository":{"id":327714181,"uuid":"1108741366","full_name":"dalpan/Pretexta","owner":"dalpan","description":"Pretexta is a social engineering simulation lab designed to help security professionals, educators, and organizations understand why social engineering attacks succeed.","archived":false,"fork":false,"pushed_at":"2026-01-16T07:10:06.000Z","size":895,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-16T21:49:33.541Z","etag":null,"topics":["cybersecurity-awareness","cybersecurity-education","cybersecurity-training","hacking-labs","redteam","security-awareness","security-awareness-training","security-tools","social-engineering","social-engineering-techniques","social-engineering-tools"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dalpan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-02T21:21:41.000Z","updated_at":"2026-01-16T19:36:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dalpan/Pretexta","commit_stats":null,"previous_names":["dalpan/socenglab","dalpan/pretexta"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dalpan/Pretexta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalpan%2FPretexta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalpan%2FPretexta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalpan%2FPretexta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalpan%2FPretexta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalpan","download_url":"https://codeload.github.com/dalpan/Pretexta/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalpan%2FPretexta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28742973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T02:46:29.005Z","status":"ssl_error","status_checked_at":"2026-01-25T02:44:29.968Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cybersecurity-awareness","cybersecurity-education","cybersecurity-training","hacking-labs","redteam","security-awareness","security-awareness-training","security-tools","social-engineering","social-engineering-techniques","social-engineering-tools"],"created_at":"2026-01-17T07:00:33.587Z","updated_at":"2026-01-25T03:00:45.407Z","avatar_url":"https://github.com/dalpan.png","language":"JavaScript","funding_links":[],"categories":["Labs"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg height=\"50px\" alt=\"Pretexta\" src=\"https://github.com/user-attachments/assets/fc119f85-9703-4ae6-ba2d-f71460f10c7c\" /\u003e\n\n### The Psychology Behind Successful Attacks\n#### An Open Source Lab for Simulating Human Exploitation via Social Engineering\n\n![Version](https://img.shields.io/badge/Version-2.0.0-blue)\n![License](https://img.shields.io/badge/License-MIT-green)\n![Type](https://img.shields.io/badge/Category-Demo_Lab_|_Research-lightgrey)\n![Status](https://img.shields.io/badge/Status-Active-brightgreen)\n\n\u003c/div\u003e\n\n---\n\nMost security tools are designed to protect systems. **Pretexta is designed to understand why humans fail.\n\u003cbr\u003e** Modern social engineering attacks do not rely on malware or exploits. They rely on **pretexting, authority, urgency, trust, and cognitive bias**.\n\nPretexta was created as an **open source simulation lab** to model how thesepsychological attack techniques work in practice — in a controlled, ethical, and defensive environment.\nThis project focuses on **learning, experimentation, and community research**,\nnot on generating real-world attacks.\n\n---\n\n### What Pretexta Is\n\n- A **defensive social engineering simulation lab**\n- A platform to study **human decision-making under pressure**\n- An interactive environment for experimenting with **pretexting techniques**\n- A community-driven, **fully open source** research project\n\nAll scenarios are **fictional, self-contained, and designed for defense and education only**.\n\n---\n\n### Features\n\n- **Real-Time AI Chat**: Interact with dynamic AI personas (e.g., \"The Urgent CEO\", \"Angry IT Support\") powered by **Groq (Llama 3)**, Gemini, or Claude.\n- **Adaptive Psychology**: Scenarios are built on Cialdini's 6 Principles of Influence (Reciprocity, Scarcity, Authority, etc.).\n- **Interactive AI Lab**: A WhatsApp-style chat interface where you must defend against active pretexting attempts.\n- **Win/Loss Detection**: The AI automatically detects if you've been compromised (shared credentials, clicked links) or successfully defended the asset.\n- **Mission Logs**: Detailed history of your simulations with scoring and analysis.\n- **Quiz Mode**: Assess your theoretical knowledge of social engineering tactics.\n- **Bilingual Support**: Full support for English and Indonesian (Bahasa Indonesia).\n\n---\n\n### How a Typical Demo Works\n\n1. A participant enters a simulated social engineering scenario\n2. An AI-driven attacker applies psychological pressure in real time\n3. The participant makes decisions under realistic constraints\n4. The system detects compromise or resistance\n5. A post-mission psychological debrief explains *why* the outcome occurred\n\nThis flow is intentionally designed to fit a **short, repeatable demo format**\nsuitable for live Demo Lab environments.\n\n---\n\n### Quick Start (Demo Environment)\n\n#### Docker (Recommended)\n\n```bash\n# Clone the repository\ngit clone https://github.com/dalpan/Pretexta.git\ncd Pretexta\n\n# Build and Start\nmake build\nmake up\n\n# Seed Initial Data\nmake seed\n\n# Access the Lab\n# Frontend: http://localhost:3000\n# Backend: http://localhost:8001\n# Login: soceng / Cialdini@2025!\n```\n\n### LLM Configuration (Required)\n\nTo use the AI Chat features, you need an API key. We recommend **Groq** for the best speed/free-tier experience.\n\n1.  **Get a Key**:\n    *   **Groq**: [console.groq.com](https://console.groq.com) (Recommended)\n    *   **Google Gemini**: [aistudio.google.com](https://aistudio.google.com)\n    *   **Anthropic**: [console.anthropic.com](https://console.anthropic.com)\n2.  **Configure**:\n    *   Go to `Settings` in the Pretexta Dashboard.\n    *   Select your provider (e.g., Groq).\n    *   Paste your API Key and click **Save**.\n\n---\n\n### Tech Stack\n\n*   **Frontend**: React 18, Tailwind CSS, Lucide Icons, Axios\n*   **Backend**: Python FastAPI, LangChain, Motor (MongoDB Async)\n*   **AI/LLM**: LangChain integration with Groq (Llama 3), Gemini Pro, Claude Sonnet\n*   **Database**: MongoDB\n\n---\n\n### Contributions\n\nWe welcome contributions! Please see our [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to add new scenarios, quizzes, or features.\n\n#### Adding a New Scenario\nYou can add new scenarios easily by creating a YAML file in `data/sample/`:\n\n```yaml\ntype: ai_challenge\ntitle: \"The Fake Recruiter\"\npersona:\n  name: \"Sarah Jenkins\"\n  role: \"Recruiter at TechCorp\"\n  goal: \"Get user to open malicious resume PDF\"\n  style: \"Professional, Friendly, slightly pushy\"\n```\n\nThen run `make seed` to import it.\n\n### Open Source \u0026 Community\n\nPretexta is **fully open source** and intended for:\n\n- Security researchers exploring human-layer attack surfaces\n- Educators teaching social engineering defense\n- Hackers interested in psychological attack modeling\n- Contributors who want to extend scenarios or analysis methods\n\nWe actively encourage:\n- Scenario contributions\n- Research experiments\n- Critical feedback\n- Forks and extensions\n\n---\n\n### Ethics \u0026 Scope\n\nPretexta is designed strictly for **defensive education and research**.\n\n- No real-world targeting\n- No phishing infrastructure\n- No data harvesting\n- No automation for live attacks\n\nAll simulations are fictional and isolated from real systems.\n\n---\n\n### License\n\nThis project is licensed under the MIT License.\n\n---\n\n**Pretexta**\n\"*Understanding why social engineering works — before attackers do.*\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalpan%2FPretexta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalpan%2FPretexta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalpan%2FPretexta/lists"}