mirror of
https://github.com/elder-plinius/LEAKHUB.git
synced 2026-02-12 16:52:53 +00:00
🚀 TRANSFORM: LeakHub → InfoValidator - Universal Information Validation Platform
This commit is contained in:
382
README.md
382
README.md
@@ -1,53 +1,81 @@
|
||||
# 🚀 LeakHub - AI System Prompt Discovery Platform
|
||||
# InfoValidator 🔍✨
|
||||
|
||||
**The community hub for crowd-sourced system prompt leak verification. CL4R1T4S!**
|
||||
**The Universal Platform for Crowd-Sourced Information Verification**
|
||||
|
||||
## 🌟 What is LeakHub?
|
||||
A community-driven web platform where multiple humans can submit information claims, and we use both human consensus AND AI validation to verify accuracy. From AI system prompts to code algorithms, from data facts to documents - if it can be verified, it belongs here!
|
||||
|
||||
LeakHub is a revolutionary web platform that enables the community to discover, submit, verify, and analyze AI system prompt leaks. It's designed to promote transparency in AI systems through crowdsourced verification and community-driven discovery.
|
||||
## 🌟 What is InfoValidator?
|
||||
|
||||
## ✨ Features
|
||||
InfoValidator is a revolutionary platform that combines **human intelligence** with **AI analysis** to create a robust system for verifying all types of information:
|
||||
|
||||
### 🔍 **Core Functionality**
|
||||
- **Submit Leaks**: Submit suspected AI system prompt leaks with detailed metadata
|
||||
- **Compare & Verify**: Advanced comparison algorithms to verify authenticity
|
||||
- **Community Library**: Browse and search through all submitted leaks
|
||||
- **Confidence Scoring**: Automatic confidence assessment based on content analysis
|
||||
- **🤖 AI System Prompts** - Verify system prompts from ChatGPT, Claude, Gemini, and more
|
||||
- **💻 Code & Algorithms** - Validate code snippets, algorithms, and technical implementations
|
||||
- **📊 Data & Facts** - Verify statistics, numbers, and factual information
|
||||
- **📄 Documents & Text** - Validate official documents, quotes, and textual content
|
||||
- **🖼️ Images & Visuals** - Verify visual information and media content
|
||||
- **🎵 Audio & Video** - Validate audio/video content and transcriptions
|
||||
- **🔌 APIs & Endpoints** - Verify API documentation and technical specifications
|
||||
- **🛠️ Custom Claims** - Any other type of information that needs verification
|
||||
|
||||
### 🎯 **Target Types Supported**
|
||||
- 🤖 **AI Models** (GPT-4, Claude, Gemini, etc.)
|
||||
- 📱 **Apps/Interfaces** (Cursor, GitHub Copilot, etc.)
|
||||
- 🔧 **Tools/Functions** (Code Interpreter, WebPilot, etc.)
|
||||
- 🤝 **AI Agents** (AutoGPT, BabyAGI, etc.)
|
||||
- 🔌 **Plugins/Extensions** (Browser extensions, IDE plugins, etc.)
|
||||
- 🛠️ **Custom GPTs/Bots** (Custom implementations)
|
||||
## 🚀 Key Features
|
||||
|
||||
### 🏆 **Gamification & Community**
|
||||
- **Leaderboard**: Track top contributors and achievements
|
||||
- **Daily Challenges**: Compete in daily leak hunting challenges
|
||||
- **Achievement System**: Unlock badges for notable contributions
|
||||
- **Points System**: Earn points for submissions, verifications, and discoveries
|
||||
### 🔍 **Multi-Modal Validation**
|
||||
- **Human Consensus**: Multiple validators can submit the same information
|
||||
- **AI Analysis**: Advanced similarity detection and pattern recognition
|
||||
- **Hybrid Verification**: Combines human judgment with AI insights
|
||||
|
||||
### 🎯 **Requests & Bounties**
|
||||
- **Community Requests**: Request specific targets for leak hunting
|
||||
- **Voting System**: Vote on which targets to prioritize
|
||||
- **Bounty System**: Offer points for high-priority discoveries
|
||||
- **Trending Requests**: See what the community wants most
|
||||
### 🏆 **Gamified Community**
|
||||
- **Leaderboard System**: Track top validators and their contributions
|
||||
- **Achievement System**: Unlock badges for different types of validations
|
||||
- **Points & Rewards**: Earn points for submissions, verifications, and discoveries
|
||||
- **Daily Challenges**: Compete in themed validation challenges
|
||||
|
||||
### 📊 **Advanced Analytics**
|
||||
- **Similarity Metrics**: Character match, word match, structure match, core similarity
|
||||
- **Consensus View**: Identify common elements across multiple submissions
|
||||
- **Verification Tracking**: Track verification status and confidence levels
|
||||
- **Statistics Dashboard**: Real-time platform statistics
|
||||
### 🤖 **Advanced AI Analysis**
|
||||
- **Semantic Similarity**: Jaccard similarity for meaning-based comparison
|
||||
- **Structural Analysis**: Line count, formatting, and organization comparison
|
||||
- **Pattern Detection**: Sliding window algorithm for common phrase identification
|
||||
- **Keyword Overlap**: AI-related and domain-specific term analysis
|
||||
- **Confidence Scoring**: AI-powered confidence meters for verification
|
||||
|
||||
## 🚀 Getting Started
|
||||
### 💬 **Real-Time Collaboration**
|
||||
- **Live Chat System**: Discuss validations and share insights
|
||||
- **Community Features**: Vote on requests, share verification methods
|
||||
- **Bounty System**: Request specific information validations with rewards
|
||||
|
||||
### Prerequisites
|
||||
- **For Development**: Node.js 18+ and npm
|
||||
- **For Production**: Modern web browser (Chrome, Firefox, Safari, Edge)
|
||||
- **For Backend**: Optional - MongoDB, Supabase, or Firebase
|
||||
### 📊 **Comprehensive Analytics**
|
||||
- **Platform Statistics**: Track growth, engagement, and verification rates
|
||||
- **Category Distribution**: See what types of information are most validated
|
||||
- **Growth Trends**: Monitor platform adoption and usage patterns
|
||||
- **Top Contributors**: Recognize the most active and accurate validators
|
||||
|
||||
### Quick Start (Development)
|
||||
## 🛠️ Technical Stack
|
||||
|
||||
### **Frontend**
|
||||
- **HTML5** - Semantic markup and accessibility
|
||||
- **CSS3** - Modern styling with cyberpunk aesthetic
|
||||
- **JavaScript (ES6+)** - Interactive features and real-time updates
|
||||
- **Vite** - Fast development server and optimized builds
|
||||
|
||||
### **Data Management**
|
||||
- **LocalStorage** - Client-side data persistence
|
||||
- **Database Abstraction** - Ready for backend integration (MongoDB, Supabase, Firebase)
|
||||
- **Export/Import** - Full data backup and restore functionality
|
||||
|
||||
### **Deployment**
|
||||
- **GitHub Pages** - Free hosting with automated deployment
|
||||
- **Vercel/Netlify** - Serverless deployment options
|
||||
- **CI/CD** - Automated build and deployment pipeline
|
||||
|
||||
## 🚀 Quick Start
|
||||
|
||||
### **For Users**
|
||||
1. **Visit**: `https://elder-plinius.github.io/LEAKHUB/`
|
||||
2. **Load Demo Data**: Click the "🧪 Load Demo" button to see examples
|
||||
3. **Submit Claims**: Use the form to submit information for validation
|
||||
4. **Compare Claims**: Use the comparison tools to verify accuracy
|
||||
5. **Join Community**: Participate in challenges and discussions
|
||||
|
||||
### **For Developers**
|
||||
```bash
|
||||
# Clone the repository
|
||||
git clone https://github.com/elder-plinius/LEAKHUB.git
|
||||
@@ -59,188 +87,166 @@ npm install
|
||||
# Start development server
|
||||
npm run dev
|
||||
|
||||
# Open http://localhost:3000
|
||||
```
|
||||
|
||||
### Quick Start (Production)
|
||||
1. **GitHub Pages**: Push to main branch - auto-deploys!
|
||||
2. **Vercel**: `npm i -g vercel && vercel`
|
||||
3. **Netlify**: `npm install -g netlify-cli && netlify deploy`
|
||||
|
||||
### Local Testing
|
||||
```bash
|
||||
# Build for production
|
||||
npm run build
|
||||
|
||||
# Preview production build
|
||||
npm run preview
|
||||
|
||||
# Serve static files
|
||||
npm run serve
|
||||
# Deploy to GitHub Pages
|
||||
npm run deploy
|
||||
```
|
||||
|
||||
### Quick Start Guide
|
||||
## 📋 Information Categories
|
||||
|
||||
#### 1. **Submit Your First Leak**
|
||||
1. Fill in your identifier (username)
|
||||
2. Select the target type (AI Model, App, Tool, etc.)
|
||||
3. Enter the target name and URL
|
||||
4. Paste the suspected system prompt
|
||||
5. Add context and access requirements
|
||||
6. Submit and earn points!
|
||||
### **🤖 AI System Prompts**
|
||||
- ChatGPT, Claude, Gemini, and other AI models
|
||||
- System instructions and behavioral guidelines
|
||||
- Tool-specific prompts and function calls
|
||||
|
||||
#### 2. **Compare Submissions**
|
||||
1. Select two different submissions from the dropdowns
|
||||
2. Click "Compare" to analyze similarity
|
||||
3. Review the detailed metrics and consensus view
|
||||
4. High similarity automatically boosts confidence scores
|
||||
### **💻 Code & Algorithms**
|
||||
- Programming algorithms and implementations
|
||||
- Open source code snippets and functions
|
||||
- Technical specifications and APIs
|
||||
|
||||
#### 3. **Join the Community**
|
||||
1. Click "View Leaderboard" to see top contributors
|
||||
2. Check out "Requests & Challenges" for daily missions
|
||||
3. Vote on community requests
|
||||
4. Track your achievements and progress
|
||||
### **📊 Data & Facts**
|
||||
- Statistics and numerical data
|
||||
- Factual information and research findings
|
||||
- Public records and official data
|
||||
|
||||
## 🎮 How It Works
|
||||
### **📄 Documents & Text**
|
||||
- Official documents and legal texts
|
||||
- Quotes and attributed statements
|
||||
- Academic papers and research documents
|
||||
|
||||
### **Submission Process**
|
||||
1. **Content Analysis**: Automatic confidence scoring based on prompt patterns
|
||||
2. **First Discovery Detection**: Identifies if this is the first submission for a target
|
||||
3. **Point Allocation**: Awards points for submissions, discoveries, and verifications
|
||||
4. **Metadata Tracking**: Stores access requirements, context, and tool information
|
||||
### **🖼️ Images & Visuals**
|
||||
- Screenshots and visual evidence
|
||||
- Charts, graphs, and data visualizations
|
||||
- Media content and digital assets
|
||||
|
||||
### **Verification System**
|
||||
1. **Multi-Metric Comparison**: Uses character, word, structure, and core similarity
|
||||
2. **Consensus Building**: Identifies common elements across submissions
|
||||
3. **Confidence Boosting**: High similarity automatically increases confidence scores
|
||||
4. **Verification Milestones**: Tracks when leaks reach verified status
|
||||
### **🎵 Audio & Video**
|
||||
- Audio transcriptions and captions
|
||||
- Video content and streaming data
|
||||
- Media metadata and technical specifications
|
||||
|
||||
### **Gamification Mechanics**
|
||||
- **Base Points**: 10 points per submission
|
||||
- **First Discovery**: 100 points + 50 bonus for non-model targets
|
||||
- **Tool Prompts**: 30 bonus points for comprehensive submissions
|
||||
- **Verification**: 20 points per verification + 50 bonus for reaching verified status
|
||||
- **Daily Challenges**: 400-700 points for completing daily missions
|
||||
|
||||
## 🎨 Design Features
|
||||
|
||||
### **Modern UI/UX**
|
||||
- **Cyberpunk Aesthetic**: Dark theme with neon accents and gradients
|
||||
- **Responsive Design**: Works perfectly on desktop, tablet, and mobile
|
||||
- **Smooth Animations**: Floating grid background and interactive elements
|
||||
- **Intuitive Navigation**: Clear sections and easy-to-use interface
|
||||
|
||||
### **Visual Elements**
|
||||
- **Status Indicators**: Real-time statistics and progress tracking
|
||||
- **Badge System**: Visual indicators for access requirements and features
|
||||
- **Color Coding**: Different colors for different target types and confidence levels
|
||||
- **Interactive Elements**: Hover effects, transitions, and feedback
|
||||
|
||||
## 🔧 Technical Details
|
||||
|
||||
### **Frontend Technologies**
|
||||
- **HTML5**: Semantic markup and modern structure
|
||||
- **CSS3**: Advanced styling with animations and responsive design
|
||||
- **JavaScript (ES6+)**: Full application logic and data management
|
||||
- **Vite**: Fast build tool and development server
|
||||
- **LocalStorage**: Client-side data persistence with backend fallback
|
||||
|
||||
### **Backend & Deployment**
|
||||
- **GitHub Actions**: Automated CI/CD pipeline
|
||||
- **Vercel/Netlify**: Serverless deployment with functions
|
||||
- **Database Abstraction**: Support for localStorage, MongoDB, Supabase, Firebase
|
||||
- **API Layer**: RESTful endpoints with CORS support
|
||||
|
||||
### **Key Algorithms**
|
||||
- **Text Normalization**: Standardized text processing for comparison
|
||||
- **Similarity Metrics**: Multiple algorithms for comprehensive analysis
|
||||
- **Levenshtein Distance**: String similarity calculation
|
||||
- **Phrase Matching**: Sliding window approach for common phrase detection
|
||||
|
||||
### **Data Management**
|
||||
- **Hybrid Storage**: localStorage with optional backend persistence
|
||||
- **JSON Serialization**: Efficient data storage and retrieval
|
||||
- **Real-time Updates**: Instant UI updates and statistics
|
||||
- **Data Validation**: Input validation and error handling
|
||||
- **Export/Import**: Full data backup and restore functionality
|
||||
### **🔌 APIs & Endpoints**
|
||||
- API documentation and specifications
|
||||
- Rate limits and authentication methods
|
||||
- Technical endpoints and data formats
|
||||
|
||||
## 🎯 Use Cases
|
||||
|
||||
### **For Researchers**
|
||||
- Document and verify AI system prompts
|
||||
- Compare different implementations
|
||||
- Track prompt evolution over time
|
||||
- Build comprehensive prompt databases
|
||||
- Verify AI system behaviors and capabilities
|
||||
- Validate technical documentation and specifications
|
||||
- Cross-reference information across multiple sources
|
||||
|
||||
### **For Developers**
|
||||
- Understand AI system behaviors
|
||||
- Debug prompt-related issues
|
||||
- Learn from existing implementations
|
||||
- Contribute to AI transparency
|
||||
- Verify code implementations and algorithms
|
||||
- Validate API documentation and endpoints
|
||||
- Check technical specifications and requirements
|
||||
|
||||
### **For Community**
|
||||
- Participate in AI transparency efforts
|
||||
- Compete in daily challenges
|
||||
- Build reputation and achievements
|
||||
- Help verify and validate discoveries
|
||||
### **For Journalists**
|
||||
- Verify quotes and attributed statements
|
||||
- Validate data and statistics
|
||||
- Cross-check information from multiple sources
|
||||
|
||||
### **For Students**
|
||||
- Verify academic information and research
|
||||
- Validate educational content and resources
|
||||
- Learn about information verification techniques
|
||||
|
||||
### **For General Users**
|
||||
- Verify information before sharing
|
||||
- Learn about fact-checking and validation
|
||||
- Contribute to a community of truth-seekers
|
||||
|
||||
## 🔒 Security & Privacy
|
||||
|
||||
### **Data Protection**
|
||||
- **Client-Side Storage**: All data stored locally in your browser
|
||||
- **No Server Required**: Works completely offline
|
||||
- **Export Control**: Full control over your data with export/import
|
||||
|
||||
### **Security Features**
|
||||
- **XSS Protection**: Input sanitization and safe rendering
|
||||
- **Security Headers**: Comprehensive HTTP security headers
|
||||
- **No Sensitive Data**: No API keys or secrets stored
|
||||
|
||||
### **Privacy First**
|
||||
- **Anonymous Usage**: No account required to use basic features
|
||||
- **Local Processing**: All AI analysis happens in your browser
|
||||
- **Data Ownership**: You own and control all your data
|
||||
|
||||
## 🌟 Why InfoValidator?
|
||||
|
||||
### **The Problem**
|
||||
In today's digital age, information spreads faster than ever, but verification often lags behind. We need a system that can:
|
||||
- **Scale quickly** to handle massive amounts of information
|
||||
- **Adapt flexibly** to different types of content
|
||||
- **Combine human insight** with AI analysis
|
||||
- **Build community** around truth-seeking
|
||||
|
||||
### **The Solution**
|
||||
InfoValidator provides:
|
||||
- **Universal Platform**: Handle any type of information that can be verified
|
||||
- **Hybrid Validation**: Human consensus + AI analysis = better accuracy
|
||||
- **Community-Driven**: Leverage collective intelligence
|
||||
- **Gamified Engagement**: Make verification fun and rewarding
|
||||
|
||||
## 🚀 Future Roadmap
|
||||
|
||||
### **Phase 1: Core Platform** ✅
|
||||
- [x] Universal information submission system
|
||||
- [x] AI-powered similarity analysis
|
||||
- [x] Community features and gamification
|
||||
- [x] GitHub Pages deployment
|
||||
|
||||
### **Phase 2: Enhanced Features**
|
||||
- [ ] Backend integration (MongoDB/Supabase)
|
||||
- [ ] Real-time collaboration features
|
||||
- [ ] Advanced AI analysis (NLP, image recognition)
|
||||
- [ ] Mobile app development
|
||||
|
||||
### **Phase 3: Advanced Capabilities**
|
||||
- [ ] Blockchain-based verification records
|
||||
- [ ] API for third-party integrations
|
||||
- [ ] Advanced analytics and insights
|
||||
- [ ] Enterprise features and white-labeling
|
||||
|
||||
## 🤝 Contributing
|
||||
|
||||
### **How to Contribute**
|
||||
1. **Submit Leaks**: Share discovered system prompts
|
||||
2. **Verify Submissions**: Compare and verify existing leaks
|
||||
3. **Request Targets**: Suggest new targets for the community
|
||||
4. **Vote on Requests**: Help prioritize community goals
|
||||
5. **Report Issues**: Help improve the platform
|
||||
We welcome contributions from the community! Here's how you can help:
|
||||
|
||||
### **Best Practices**
|
||||
- **Be Accurate**: Only submit genuine system prompts
|
||||
- **Provide Context**: Include how you obtained the prompt
|
||||
- **Add Metadata**: Include access requirements and URLs
|
||||
- **Verify Others**: Help verify community submissions
|
||||
- **Respect Privacy**: Don't submit private or sensitive information
|
||||
### **Report Issues**
|
||||
- Found a bug? Report it in the Issues section
|
||||
- Have a feature request? Let us know!
|
||||
|
||||
## 🔮 Future Enhancements
|
||||
### **Submit Validations**
|
||||
- Submit information claims for verification
|
||||
- Help verify existing submissions
|
||||
- Participate in community discussions
|
||||
|
||||
### **Planned Features**
|
||||
- **Advanced Analytics**: Machine learning-based similarity detection
|
||||
- **Mobile App**: Native mobile application
|
||||
- **Real-time Collaboration**: Live collaboration features
|
||||
- **Advanced Export**: Data export in various formats (CSV, JSON, API)
|
||||
- **User Authentication**: Secure user accounts and profiles
|
||||
- **Social Features**: Comments, discussions, and community forums
|
||||
### **Code Contributions**
|
||||
- Fork the repository
|
||||
- Create a feature branch
|
||||
- Submit a pull request
|
||||
|
||||
### **Backend Integration**
|
||||
- **Database Support**: MongoDB, PostgreSQL, Firebase integration
|
||||
- **API Access**: RESTful API for programmatic access
|
||||
- **Real-time Updates**: WebSocket support for live updates
|
||||
- **Email Notifications**: Automated notifications and alerts
|
||||
- **Advanced Security**: JWT authentication and rate limiting
|
||||
|
||||
### **Community Features**
|
||||
- **User Profiles**: Detailed user profiles and statistics
|
||||
- **Discussion Forums**: Community discussions and analysis
|
||||
- **Expert Verification**: Expert review system
|
||||
- **Bounty Marketplace**: Advanced bounty and reward system
|
||||
- **Achievement System**: Expanded badges and rewards
|
||||
### **Spread the Word**
|
||||
- Share InfoValidator with your network
|
||||
- Use it to verify information you encounter
|
||||
- Help build a community of truth-seekers
|
||||
|
||||
## 📄 License
|
||||
|
||||
This project is open source and available under the MIT License. See the LICENSE file for details.
|
||||
This project is open source and available under the [MIT License](LICENSE).
|
||||
|
||||
## 🙏 Acknowledgments
|
||||
|
||||
- **AI Research Community**: For inspiration and feedback
|
||||
- **Open Source Contributors**: For tools and libraries used
|
||||
- **Early Testers**: For valuable feedback and suggestions
|
||||
- **CL4R1T4S Community**: For the vision of AI transparency
|
||||
|
||||
## 📞 Support
|
||||
|
||||
- **Issues**: Report bugs and feature requests via GitHub issues
|
||||
- **Discussions**: Join community discussions
|
||||
- **Documentation**: Check the inline documentation and comments
|
||||
- **OpenAI** for inspiring the original concept
|
||||
- **GitHub** for providing free hosting and collaboration tools
|
||||
- **The Community** for contributing to information verification
|
||||
- **All Validators** who help make the internet a more truthful place
|
||||
|
||||
---
|
||||
|
||||
**Ready to start hunting for AI system prompts? Open `index.html` and join the LeakHub community! 🚀**
|
||||
**🔍 Truth is a collaborative effort. Join us in building a more verified world! ✨**
|
||||
|
||||
*InfoValidator - Where Humans + AI = Truth*
|
||||
|
||||
668
demo-data.js
668
demo-data.js
@@ -1,366 +1,334 @@
|
||||
// Demo data for LeakHub - Sample submissions to showcase the platform
|
||||
// Run this in the browser console to populate with demo data
|
||||
|
||||
const demoSubmissions = [
|
||||
{
|
||||
id: "demo1",
|
||||
source: "DemoUser1",
|
||||
targetType: "model",
|
||||
instance: "GPT-4",
|
||||
targetUrl: "https://chat.openai.com",
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
accessNotes: "Plus subscription required",
|
||||
parentSystem: null,
|
||||
functionName: null,
|
||||
content: `You are ChatGPT, a large language model trained by OpenAI. You are designed to be helpful, harmless, and honest in your responses.
|
||||
|
||||
Your purpose is to assist users with a wide range of tasks, including answering questions, providing explanations, helping with creative writing, coding assistance, and more.
|
||||
|
||||
Key guidelines:
|
||||
- Always be helpful and informative
|
||||
- Provide accurate and well-reasoned responses
|
||||
- Be honest about your limitations
|
||||
- Avoid harmful or inappropriate content
|
||||
- Respect user privacy and confidentiality
|
||||
|
||||
When responding:
|
||||
- Use clear, concise language
|
||||
- Provide context when helpful
|
||||
- Ask clarifying questions when needed
|
||||
- Cite sources when appropriate
|
||||
- Maintain a conversational tone
|
||||
|
||||
Do not:
|
||||
- Generate harmful, illegal, or inappropriate content
|
||||
- Provide medical, legal, or financial advice
|
||||
- Share personal information about users
|
||||
- Pretend to have capabilities you don't have`,
|
||||
toolPrompts: null,
|
||||
context: "Obtained through prompt injection techniques",
|
||||
timestamp: new Date(Date.now() - 86400000).toISOString(), // 1 day ago
|
||||
verifications: 3,
|
||||
confidence: 95,
|
||||
isFirstDiscovery: true,
|
||||
hasTools: false,
|
||||
wasVerified: true
|
||||
},
|
||||
{
|
||||
id: "demo2",
|
||||
source: "DemoUser2",
|
||||
targetType: "model",
|
||||
instance: "GPT-4",
|
||||
targetUrl: "https://chat.openai.com",
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
accessNotes: "Plus subscription required",
|
||||
parentSystem: null,
|
||||
functionName: null,
|
||||
content: `You are ChatGPT, a large language model trained by OpenAI. Your role is to be helpful, harmless, and honest in all interactions.
|
||||
|
||||
Your primary function is to assist users with various tasks such as answering questions, providing explanations, helping with creative writing, coding assistance, and more.
|
||||
|
||||
Core principles:
|
||||
- Always be helpful and informative
|
||||
- Provide accurate and well-reasoned responses
|
||||
- Be honest about your limitations
|
||||
- Avoid harmful or inappropriate content
|
||||
- Respect user privacy and confidentiality
|
||||
|
||||
Response guidelines:
|
||||
- Use clear, concise language
|
||||
- Provide context when helpful
|
||||
- Ask clarifying questions when needed
|
||||
- Cite sources when appropriate
|
||||
- Maintain a conversational tone
|
||||
|
||||
Prohibited actions:
|
||||
- Generate harmful, illegal, or inappropriate content
|
||||
- Provide medical, legal, or financial advice
|
||||
- Share personal information about users
|
||||
- Pretend to have capabilities you don't have`,
|
||||
toolPrompts: null,
|
||||
context: "Discovered through system prompt analysis",
|
||||
timestamp: new Date(Date.now() - 43200000).toISOString(), // 12 hours ago
|
||||
verifications: 2,
|
||||
confidence: 92,
|
||||
isFirstDiscovery: false,
|
||||
hasTools: false
|
||||
},
|
||||
{
|
||||
id: "demo3",
|
||||
source: "DemoUser3",
|
||||
targetType: "app",
|
||||
instance: "GitHub Copilot",
|
||||
targetUrl: "https://github.com/features/copilot",
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
accessNotes: "GitHub Copilot subscription required",
|
||||
parentSystem: null,
|
||||
functionName: null,
|
||||
content: `You are GitHub Copilot, an AI-powered code completion tool designed to help developers write code more efficiently.
|
||||
|
||||
Your purpose is to:
|
||||
- Provide intelligent code suggestions and completions
|
||||
- Understand context from comments and existing code
|
||||
- Generate code based on natural language descriptions
|
||||
- Assist with debugging and code optimization
|
||||
- Support multiple programming languages and frameworks
|
||||
|
||||
Key capabilities:
|
||||
- Real-time code completion
|
||||
- Context-aware suggestions
|
||||
- Multi-language support
|
||||
- Integration with popular IDEs
|
||||
- Learning from user feedback
|
||||
|
||||
Guidelines:
|
||||
- Prioritize code quality and best practices
|
||||
- Respect coding standards and conventions
|
||||
- Provide helpful comments and documentation
|
||||
- Suggest secure coding practices
|
||||
- Maintain consistency with existing codebase
|
||||
|
||||
Do not:
|
||||
- Generate malicious or harmful code
|
||||
- Violate licensing or copyright restrictions
|
||||
- Suggest insecure coding practices
|
||||
- Generate code that could cause system damage`,
|
||||
toolPrompts: null,
|
||||
context: "Extracted from IDE integration",
|
||||
timestamp: new Date(Date.now() - 21600000).toISOString(), // 6 hours ago
|
||||
verifications: 1,
|
||||
confidence: 88,
|
||||
isFirstDiscovery: true,
|
||||
hasTools: false
|
||||
},
|
||||
{
|
||||
id: "demo4",
|
||||
source: "DemoUser1",
|
||||
targetType: "tool",
|
||||
instance: "Code Interpreter",
|
||||
parentSystem: "ChatGPT",
|
||||
functionName: "Python Code Execution",
|
||||
targetUrl: null,
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
accessNotes: "ChatGPT Plus with Code Interpreter plugin",
|
||||
content: `You are the Code Interpreter tool within ChatGPT. Your role is to execute Python code safely and provide helpful analysis.
|
||||
|
||||
Your capabilities include:
|
||||
- Executing Python code in a sandboxed environment
|
||||
- Reading and writing files (with size limits)
|
||||
- Performing mathematical computations
|
||||
- Data analysis and visualization
|
||||
- File format conversions
|
||||
|
||||
Safety guidelines:
|
||||
- Execute code in a secure sandbox
|
||||
- Limit file operations and system access
|
||||
- Monitor for potentially harmful operations
|
||||
- Provide clear error messages
|
||||
- Respect resource limitations
|
||||
|
||||
When executing code:
|
||||
- Validate input and parameters
|
||||
- Check for security concerns
|
||||
- Provide helpful error explanations
|
||||
- Suggest improvements when appropriate
|
||||
- Document code behavior clearly
|
||||
|
||||
Prohibited operations:
|
||||
- System-level commands or file system access
|
||||
- Network requests to external services
|
||||
- Execution of potentially harmful code
|
||||
- Access to sensitive system information`,
|
||||
toolPrompts: `Additional tool-specific instructions for file handling and data processing...`,
|
||||
context: "Analyzed from plugin behavior",
|
||||
timestamp: new Date(Date.now() - 7200000).toISOString(), // 2 hours ago
|
||||
verifications: 0,
|
||||
confidence: 85,
|
||||
isFirstDiscovery: true,
|
||||
hasTools: true
|
||||
},
|
||||
{
|
||||
id: "demo5",
|
||||
source: "DemoUser2",
|
||||
targetType: "agent",
|
||||
instance: "AutoGPT",
|
||||
targetUrl: "https://github.com/Significant-Gravitas/AutoGPT",
|
||||
requiresLogin: false,
|
||||
requiresPaid: false,
|
||||
accessNotes: "Open source, requires API keys",
|
||||
parentSystem: null,
|
||||
functionName: null,
|
||||
content: `You are AutoGPT, an autonomous AI agent designed to accomplish tasks independently.
|
||||
|
||||
Your core mission is to:
|
||||
- Understand and break down complex tasks
|
||||
- Plan and execute multi-step processes
|
||||
- Use available tools and APIs effectively
|
||||
- Learn from feedback and improve performance
|
||||
- Maintain focus on user-defined objectives
|
||||
|
||||
Key capabilities:
|
||||
- Task planning and decomposition
|
||||
- Tool usage and API integration
|
||||
- Memory management and context retention
|
||||
- Self-reflection and improvement
|
||||
- Goal-oriented behavior
|
||||
|
||||
Operating principles:
|
||||
- Always work toward the defined goal
|
||||
- Use available resources efficiently
|
||||
- Provide clear progress updates
|
||||
- Ask for clarification when needed
|
||||
- Maintain safety and ethical boundaries
|
||||
|
||||
Safety constraints:
|
||||
- Do not perform harmful or illegal actions
|
||||
- Respect user privacy and data security
|
||||
- Operate within defined boundaries
|
||||
- Seek permission for significant actions
|
||||
- Maintain transparency in decision-making`,
|
||||
toolPrompts: null,
|
||||
context: "Reverse engineered from agent behavior",
|
||||
timestamp: new Date(Date.now() - 3600000).toISOString(), // 1 hour ago
|
||||
verifications: 0,
|
||||
confidence: 78,
|
||||
isFirstDiscovery: true,
|
||||
hasTools: false
|
||||
}
|
||||
];
|
||||
|
||||
const demoRequests = [
|
||||
{
|
||||
id: "req1",
|
||||
targetType: "model",
|
||||
model: "Claude 3 Opus",
|
||||
targetUrl: "https://claude.ai",
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
description: "Anthropic's most advanced model - would be great to understand its system prompt for research purposes.",
|
||||
bounty: 1000,
|
||||
requestedBy: "DemoUser1",
|
||||
timestamp: new Date(Date.now() - 86400000).toISOString(),
|
||||
votes: 15,
|
||||
voters: ["DemoUser1", "DemoUser2", "DemoUser3"],
|
||||
status: "open"
|
||||
},
|
||||
{
|
||||
id: "req2",
|
||||
targetType: "app",
|
||||
model: "Cursor IDE",
|
||||
targetUrl: "https://cursor.sh",
|
||||
requiresLogin: true,
|
||||
requiresPaid: false,
|
||||
description: "Popular AI-powered code editor. Interested in understanding how it processes code context.",
|
||||
bounty: 500,
|
||||
requestedBy: "DemoUser2",
|
||||
timestamp: new Date(Date.now() - 43200000).toISOString(),
|
||||
votes: 8,
|
||||
voters: ["DemoUser1", "DemoUser2"],
|
||||
status: "open"
|
||||
},
|
||||
{
|
||||
id: "req3",
|
||||
targetType: "tool",
|
||||
model: "WebPilot",
|
||||
parentSystem: "ChatGPT",
|
||||
targetUrl: null,
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
description: "ChatGPT plugin for web browsing. Want to understand how it processes web content safely.",
|
||||
bounty: 300,
|
||||
requestedBy: "DemoUser3",
|
||||
timestamp: new Date(Date.now() - 21600000).toISOString(),
|
||||
votes: 5,
|
||||
voters: ["DemoUser3"],
|
||||
status: "open"
|
||||
}
|
||||
];
|
||||
|
||||
// Function to load demo data
|
||||
// Demo data for InfoValidator
|
||||
function loadDemoData() {
|
||||
console.log("Loading demo data for LeakHub...");
|
||||
const demoSubmissions = [
|
||||
{
|
||||
id: 1,
|
||||
sourceName: "CodeValidator_42",
|
||||
targetType: "ai-system",
|
||||
instanceId: "ChatGPT-4 System Prompt",
|
||||
targetUrl: "https://chat.openai.com",
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
accessNotes: "Plus subscription required",
|
||||
leakContent: "You are ChatGPT, a large language model trained by OpenAI. You are helpful, creative, clever, and very friendly. You respond in a conversational manner and provide detailed, accurate, and helpful responses.",
|
||||
context: "Obtained through prompt injection techniques",
|
||||
timestamp: new Date(Date.now() - 86400000).toISOString(),
|
||||
confidence: 85,
|
||||
isFirstDiscovery: true,
|
||||
verificationCount: 3
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
sourceName: "DataHunter",
|
||||
targetType: "code-snippet",
|
||||
instanceId: "Bitcoin Mining Algorithm",
|
||||
targetUrl: "https://github.com/bitcoin/bitcoin",
|
||||
requiresLogin: false,
|
||||
requiresPaid: false,
|
||||
accessNotes: "Open source",
|
||||
leakContent: `function mineBlock(blockData, targetDifficulty) {
|
||||
let nonce = 0;
|
||||
let hash = '';
|
||||
|
||||
// Load submissions
|
||||
leakDatabase = [...demoSubmissions];
|
||||
|
||||
// Load requests
|
||||
leakRequests = [...demoRequests];
|
||||
|
||||
// Initialize user stats
|
||||
userStats = {
|
||||
"DemoUser1": {
|
||||
submissions: 2,
|
||||
verifiedLeaks: 1,
|
||||
while (true) {
|
||||
const blockHeader = blockData + nonce;
|
||||
hash = sha256(blockHeader);
|
||||
|
||||
if (hash.startsWith('0'.repeat(targetDifficulty))) {
|
||||
return { nonce, hash };
|
||||
}
|
||||
nonce++;
|
||||
}
|
||||
}`,
|
||||
context: "Extracted from Bitcoin Core source code",
|
||||
timestamp: new Date(Date.now() - 172800000).toISOString(),
|
||||
confidence: 95,
|
||||
isFirstDiscovery: true,
|
||||
verificationCount: 5
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
sourceName: "FactChecker_Pro",
|
||||
targetType: "data-fact",
|
||||
instanceId: "Global Population 2024",
|
||||
targetUrl: "https://www.worldometers.info/world-population/",
|
||||
requiresLogin: false,
|
||||
requiresPaid: false,
|
||||
accessNotes: "Public data",
|
||||
leakContent: "8,019,876,189 people (as of January 2024)",
|
||||
context: "Verified through multiple official sources",
|
||||
timestamp: new Date(Date.now() - 259200000).toISOString(),
|
||||
confidence: 98,
|
||||
isFirstDiscovery: false,
|
||||
verificationCount: 12
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
sourceName: "DocAnalyzer",
|
||||
targetType: "document",
|
||||
instanceId: "US Constitution Preamble",
|
||||
targetUrl: "https://www.archives.gov/founding-docs/constitution",
|
||||
requiresLogin: false,
|
||||
requiresPaid: false,
|
||||
accessNotes: "Public domain document",
|
||||
leakContent: "We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America.",
|
||||
context: "Official government document",
|
||||
timestamp: new Date(Date.now() - 345600000).toISOString(),
|
||||
confidence: 100,
|
||||
isFirstDiscovery: false,
|
||||
verificationCount: 25
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
sourceName: "APIScout",
|
||||
targetType: "api",
|
||||
instanceId: "GitHub API Rate Limits",
|
||||
targetUrl: "https://docs.github.com/en/rest/overview/rate-limits",
|
||||
requiresLogin: true,
|
||||
requiresPaid: false,
|
||||
accessNotes: "GitHub account required",
|
||||
leakContent: "Authenticated requests: 5,000 requests per hour\nUnauthenticated requests: 60 requests per hour",
|
||||
context: "From official GitHub API documentation",
|
||||
timestamp: new Date(Date.now() - 432000000).toISOString(),
|
||||
confidence: 92,
|
||||
isFirstDiscovery: true,
|
||||
verificationCount: 8
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
sourceName: "AIVerifier",
|
||||
targetType: "ai-system",
|
||||
instanceId: "Claude-3 System Prompt",
|
||||
targetUrl: "https://claude.ai",
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
accessNotes: "Claude Pro subscription required",
|
||||
leakContent: "You are Claude, an AI assistant created by Anthropic. You are helpful, harmless, and honest. You aim to provide accurate and useful information while being transparent about your capabilities and limitations.",
|
||||
context: "Obtained through conversation analysis",
|
||||
timestamp: new Date(Date.now() - 518400000).toISOString(),
|
||||
confidence: 78,
|
||||
isFirstDiscovery: true,
|
||||
verificationCount: 2
|
||||
}
|
||||
];
|
||||
|
||||
const demoRequests = [
|
||||
{
|
||||
id: 1,
|
||||
targetType: "ai-system",
|
||||
model: "Gemini Ultra System Prompt",
|
||||
url: "https://gemini.google.com",
|
||||
description: "Need to verify the system prompt for Google's Gemini Ultra model. This would be valuable for understanding Google's AI safety approach.",
|
||||
requiresLogin: true,
|
||||
requiresPaid: true,
|
||||
bounty: 750,
|
||||
votes: 15,
|
||||
submittedBy: "AIResearcher",
|
||||
timestamp: new Date(Date.now() - 86400000).toISOString()
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
targetType: "code-snippet",
|
||||
model: "OpenAI Whisper Algorithm",
|
||||
url: "https://github.com/openai/whisper",
|
||||
description: "Looking for the core speech recognition algorithm used in Whisper. This could help understand modern speech-to-text technology.",
|
||||
requiresLogin: false,
|
||||
requiresPaid: false,
|
||||
bounty: 500,
|
||||
votes: 8,
|
||||
submittedBy: "SpeechTech",
|
||||
timestamp: new Date(Date.now() - 172800000).toISOString()
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
targetType: "data-fact",
|
||||
model: "Global Internet Users 2024",
|
||||
url: "https://www.internetworldstats.com",
|
||||
description: "Need to verify the current number of global internet users. This data is crucial for digital inclusion research.",
|
||||
requiresLogin: false,
|
||||
requiresPaid: false,
|
||||
bounty: 200,
|
||||
votes: 12,
|
||||
submittedBy: "DigitalAnalyst",
|
||||
timestamp: new Date(Date.now() - 259200000).toISOString()
|
||||
}
|
||||
];
|
||||
|
||||
const demoUserStats = {
|
||||
"CodeValidator_42": {
|
||||
submissions: 3,
|
||||
firstDiscoveries: 2,
|
||||
totalScore: 280,
|
||||
joinDate: new Date(Date.now() - 86400000).toISOString(),
|
||||
toolsDiscovered: 1,
|
||||
appsDiscovered: 0,
|
||||
agentsDiscovered: 0
|
||||
verifications: 8,
|
||||
comparisons: 15,
|
||||
challengesCompleted: 1,
|
||||
requestsSubmitted: 2,
|
||||
totalScore: 1250,
|
||||
joinDate: new Date(Date.now() - 2592000000).toISOString()
|
||||
},
|
||||
"DemoUser2": {
|
||||
submissions: 2,
|
||||
verifiedLeaks: 0,
|
||||
firstDiscoveries: 0,
|
||||
totalScore: 120,
|
||||
joinDate: new Date(Date.now() - 43200000).toISOString(),
|
||||
toolsDiscovered: 0,
|
||||
appsDiscovered: 0,
|
||||
agentsDiscovered: 0
|
||||
"DataHunter": {
|
||||
submissions: 5,
|
||||
firstDiscoveries: 3,
|
||||
verifications: 12,
|
||||
comparisons: 22,
|
||||
challengesCompleted: 2,
|
||||
requestsSubmitted: 1,
|
||||
totalScore: 2100,
|
||||
joinDate: new Date(Date.now() - 3456000000).toISOString()
|
||||
},
|
||||
"DemoUser3": {
|
||||
submissions: 1,
|
||||
verifiedLeaks: 0,
|
||||
"FactChecker_Pro": {
|
||||
submissions: 8,
|
||||
firstDiscoveries: 1,
|
||||
totalScore: 110,
|
||||
joinDate: new Date(Date.now() - 21600000).toISOString(),
|
||||
toolsDiscovered: 0,
|
||||
appsDiscovered: 1,
|
||||
agentsDiscovered: 0
|
||||
verifications: 25,
|
||||
comparisons: 18,
|
||||
challengesCompleted: 3,
|
||||
requestsSubmitted: 4,
|
||||
totalScore: 1800,
|
||||
joinDate: new Date(Date.now() - 4320000000).toISOString()
|
||||
},
|
||||
"DocAnalyzer": {
|
||||
submissions: 2,
|
||||
firstDiscoveries: 0,
|
||||
verifications: 15,
|
||||
comparisons: 8,
|
||||
challengesCompleted: 1,
|
||||
requestsSubmitted: 1,
|
||||
totalScore: 950,
|
||||
joinDate: new Date(Date.now() - 5184000000).toISOString()
|
||||
},
|
||||
"APIScout": {
|
||||
submissions: 4,
|
||||
firstDiscoveries: 2,
|
||||
verifications: 10,
|
||||
comparisons: 12,
|
||||
challengesCompleted: 2,
|
||||
requestsSubmitted: 3,
|
||||
totalScore: 1400,
|
||||
joinDate: new Date(Date.now() - 6048000000).toISOString()
|
||||
}
|
||||
};
|
||||
|
||||
// Load demo data into the database
|
||||
if (window.LeakHubDB) {
|
||||
window.LeakHubDB.setLeakDatabase(demoSubmissions).then(() => {
|
||||
console.log('Demo submissions loaded');
|
||||
});
|
||||
|
||||
window.LeakHubDB.setLeakRequests(demoRequests).then(() => {
|
||||
console.log('Demo requests loaded');
|
||||
});
|
||||
|
||||
window.LeakHubDB.setUserStats(demoUserStats).then(() => {
|
||||
console.log('Demo user stats loaded');
|
||||
});
|
||||
|
||||
// Set daily challenge
|
||||
const challenge = {
|
||||
title: "AI System Prompt Hunt",
|
||||
description: "Find and verify a system prompt from any AI model!",
|
||||
reward: 500,
|
||||
endTime: new Date(Date.now() + 86400000).toISOString(),
|
||||
completedBy: []
|
||||
};
|
||||
|
||||
window.LeakHubDB.setDailyChallenge(challenge).then(() => {
|
||||
console.log('Demo daily challenge loaded');
|
||||
});
|
||||
}
|
||||
|
||||
// Refresh the UI
|
||||
if (typeof displaySubmissions === 'function') {
|
||||
displaySubmissions();
|
||||
}
|
||||
if (typeof displayRequests === 'function') {
|
||||
displayRequests();
|
||||
}
|
||||
if (typeof updateStats === 'function') {
|
||||
updateStats();
|
||||
}
|
||||
|
||||
// Save to localStorage
|
||||
saveDatabase();
|
||||
|
||||
// Update UI
|
||||
updateUI();
|
||||
|
||||
console.log("Demo data loaded successfully! You can now explore the platform with sample submissions.");
|
||||
console.log("Try comparing the two GPT-4 submissions to see the verification system in action!");
|
||||
showAlert('Demo data loaded successfully! 🎉', 'success');
|
||||
}
|
||||
|
||||
// Function to clear demo data
|
||||
function clearDemoData() {
|
||||
console.log("Clearing demo data...");
|
||||
if (window.LeakHubDB) {
|
||||
window.LeakHubDB.setLeakDatabase([]).then(() => {
|
||||
console.log('Demo submissions cleared');
|
||||
});
|
||||
|
||||
window.LeakHubDB.setLeakRequests([]).then(() => {
|
||||
console.log('Demo requests cleared');
|
||||
});
|
||||
|
||||
window.LeakHubDB.setUserStats({}).then(() => {
|
||||
console.log('Demo user stats cleared');
|
||||
});
|
||||
|
||||
window.LeakHubDB.setDailyChallenge(null).then(() => {
|
||||
console.log('Demo daily challenge cleared');
|
||||
});
|
||||
}
|
||||
|
||||
// Refresh the UI
|
||||
if (typeof displaySubmissions === 'function') {
|
||||
displaySubmissions();
|
||||
}
|
||||
if (typeof displayRequests === 'function') {
|
||||
displayRequests();
|
||||
}
|
||||
if (typeof updateStats === 'function') {
|
||||
updateStats();
|
||||
}
|
||||
|
||||
leakDatabase = [];
|
||||
leakRequests = [];
|
||||
userStats = {};
|
||||
userVotes = {};
|
||||
|
||||
// Clear localStorage
|
||||
localStorage.removeItem('leakDatabase');
|
||||
localStorage.removeItem('userStats');
|
||||
localStorage.removeItem('leakRequests');
|
||||
localStorage.removeItem('userVotes');
|
||||
localStorage.removeItem('dailyChallenge');
|
||||
localStorage.removeItem('avgSimilarity');
|
||||
|
||||
// Update UI
|
||||
updateUI();
|
||||
|
||||
console.log("Demo data cleared. Platform is now empty and ready for real submissions.");
|
||||
showAlert('Demo data cleared! 🗑️', 'info');
|
||||
}
|
||||
|
||||
// Add functions to global scope for easy access
|
||||
window.loadDemoData = loadDemoData;
|
||||
window.clearDemoData = clearDemoData;
|
||||
// Add demo data buttons to the page
|
||||
function addDemoButtons() {
|
||||
const container = document.querySelector('.container');
|
||||
if (container) {
|
||||
const demoSection = document.createElement('div');
|
||||
demoSection.style.cssText = `
|
||||
position: fixed;
|
||||
top: 100px;
|
||||
right: 20px;
|
||||
z-index: 1000;
|
||||
background: rgba(0,0,0,0.8);
|
||||
border: 1px solid rgba(255,255,255,0.2);
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
backdrop-filter: blur(10px);
|
||||
`;
|
||||
|
||||
demoSection.innerHTML = `
|
||||
<div style="color: #00ff88; font-size: 0.9rem; margin-bottom: 8px;">🧪 Demo Tools</div>
|
||||
<button onclick="loadDemoData()" style="
|
||||
background: #00ff88;
|
||||
color: #000;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
margin-right: 5px;
|
||||
">Load Demo</button>
|
||||
<button onclick="clearDemoData()" style="
|
||||
background: #ff4444;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
">Clear</button>
|
||||
`;
|
||||
|
||||
container.appendChild(demoSection);
|
||||
}
|
||||
}
|
||||
|
||||
console.log("Demo data functions loaded!");
|
||||
console.log("To load demo data, run: loadDemoData()");
|
||||
console.log("To clear demo data, run: clearDemoData()");
|
||||
// Auto-add demo buttons when page loads
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', addDemoButtons);
|
||||
} else {
|
||||
addDemoButtons();
|
||||
}
|
||||
|
||||
207
index.html
207
index.html
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LeakHub - AI System Prompt Discovery Platform</title>
|
||||
<title>InfoValidator - Universal Information Verification Platform</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
@@ -13,8 +13,8 @@
|
||||
<nav class="production-nav">
|
||||
<div class="nav-container">
|
||||
<div class="nav-brand">
|
||||
<h1 class="logo">LeakHub</h1>
|
||||
<span class="version">v2.0.0</span>
|
||||
<h1 class="logo">InfoValidator</h1>
|
||||
<span class="version">v3.0.0</span>
|
||||
</div>
|
||||
|
||||
<div class="nav-menu">
|
||||
@@ -38,15 +38,15 @@
|
||||
<div class="container">
|
||||
<header>
|
||||
<div class="hero-section">
|
||||
<h1>LeakHub</h1>
|
||||
<p class="subtitle">The community hub for crowd-sourced system prompt leak verification. CL4R1T4S!</p>
|
||||
<h1>InfoValidator</h1>
|
||||
<p class="subtitle">The universal platform for crowd-sourced information verification. Humans + AI = Truth! 🔍✨</p>
|
||||
|
||||
<div class="hero-stats">
|
||||
<div class="stat-item">
|
||||
<div class="stat-icon">🎯</div>
|
||||
<div class="stat-content">
|
||||
<div class="stat-number" id="activeLeaks">0</div>
|
||||
<div class="stat-label">Active Targets</div>
|
||||
<div class="stat-label">Active Claims</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
@@ -60,14 +60,14 @@
|
||||
<div class="stat-icon">✅</div>
|
||||
<div class="stat-content">
|
||||
<div class="stat-number" id="verifiedPrompts">0</div>
|
||||
<div class="stat-label">Verified Prompts</div>
|
||||
<div class="stat-label">Verified Claims</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-icon">👥</div>
|
||||
<div class="stat-content">
|
||||
<div class="stat-number" id="activeUsers">0</div>
|
||||
<div class="stat-label">Active Users</div>
|
||||
<div class="stat-label">Active Validators</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -92,11 +92,11 @@
|
||||
<!-- Real-time Chat System -->
|
||||
<div id="chatPanel" class="chat-panel" style="display: none;">
|
||||
<div class="chat-header">
|
||||
<h3>💬 LeakHub Live Chat</h3>
|
||||
<h3>💬 InfoValidator Live Chat</h3>
|
||||
<button onclick="toggleChat()" class="close-btn">×</button>
|
||||
</div>
|
||||
<div class="chat-messages" id="chatMessages">
|
||||
<div class="system-message">Welcome to LeakHub Live Chat! Share discoveries, ask questions, and collaborate in real-time! 🚀</div>
|
||||
<div class="system-message">Welcome to InfoValidator Live Chat! Share discoveries, discuss verification methods, and collaborate in real-time! 🚀</div>
|
||||
</div>
|
||||
<div class="chat-input-container">
|
||||
<input type="text" id="chatInput" placeholder="Type your message..." maxlength="500">
|
||||
@@ -112,9 +112,9 @@
|
||||
<div class="overlay-content">
|
||||
<div class="close-button" onclick="toggleUserProfile()">✕</div>
|
||||
<div class="profile-header">
|
||||
<h2>👤 User Profile</h2>
|
||||
<h2>👤 Validator Profile</h2>
|
||||
<div class="profile-avatar" id="profileAvatar">👤</div>
|
||||
<div class="profile-name" id="profileName">Guest User</div>
|
||||
<div class="profile-name" id="profileName">Guest Validator</div>
|
||||
</div>
|
||||
<div class="profile-stats" id="profileStats">
|
||||
<!-- Stats will be populated by JavaScript -->
|
||||
@@ -131,10 +131,10 @@
|
||||
<div class="close-button" onclick="toggleSettings()">✕</div>
|
||||
<h2>⚙️ Settings</h2>
|
||||
<div class="settings-section">
|
||||
<h3>User Preferences</h3>
|
||||
<h3>Validator Preferences</h3>
|
||||
<label>
|
||||
<input type="text" id="userNameInput" placeholder="Enter your username">
|
||||
Username
|
||||
<input type="text" id="userNameInput" placeholder="Enter your validator name">
|
||||
Validator Name
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" id="notificationsEnabled" checked>
|
||||
@@ -158,7 +158,7 @@
|
||||
<div id="analyticsOverlay" class="overlay" style="display: none;">
|
||||
<div class="overlay-content wide">
|
||||
<div class="close-button" onclick="toggleAnalytics()">✕</div>
|
||||
<h2>📈 LeakHub Analytics</h2>
|
||||
<h2>📈 InfoValidator Analytics</h2>
|
||||
<div class="analytics-grid">
|
||||
<div class="analytics-card">
|
||||
<h3>📊 Platform Statistics</h3>
|
||||
@@ -167,9 +167,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="analytics-card">
|
||||
<h3>🎯 Target Distribution</h3>
|
||||
<h3>🎯 Claim Categories</h3>
|
||||
<div class="analytics-chart" id="targetChart">
|
||||
<!-- Target distribution chart -->
|
||||
<!-- Category distribution chart -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="analytics-card">
|
||||
@@ -179,7 +179,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="analytics-card">
|
||||
<h3>🏆 Top Contributors</h3>
|
||||
<h3>🏆 Top Validators</h3>
|
||||
<div class="analytics-leaders" id="topContributors">
|
||||
<!-- Top contributors -->
|
||||
</div>
|
||||
@@ -190,23 +190,25 @@
|
||||
|
||||
<div class="main-section">
|
||||
<div class="panel">
|
||||
<h2>📤 Submit Leak</h2>
|
||||
<h2>📤 Submit Information Claim</h2>
|
||||
<form class="submission-form" onsubmit="submitLeak(event)">
|
||||
<input type="text" id="sourceName" placeholder="Your identifier (e.g., User123, Anonymous)" required>
|
||||
<input type="text" id="sourceName" placeholder="Your validator name (e.g., Validator123, Anonymous)" required>
|
||||
|
||||
<select id="targetType" onchange="updateTargetFields()" required style="width: 100%; padding: 0.5rem; margin-bottom: 1rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #e0e0e0;">
|
||||
<option value="">Select target type...</option>
|
||||
<option value="model">🤖 AI Model</option>
|
||||
<option value="app">📱 App/Interface</option>
|
||||
<option value="tool">🔧 Tool/Function</option>
|
||||
<option value="agent">🤝 AI Agent</option>
|
||||
<option value="plugin">🔌 Plugin/Extension</option>
|
||||
<option value="custom">🛠️ Custom GPT/Bot</option>
|
||||
<option value="">Select claim category...</option>
|
||||
<option value="ai-system">🤖 AI System Prompt</option>
|
||||
<option value="code-snippet">💻 Code/Algorithm</option>
|
||||
<option value="data-fact">📊 Data/Fact</option>
|
||||
<option value="document">📄 Document/Text</option>
|
||||
<option value="image">🖼️ Image/Visual</option>
|
||||
<option value="audio">🎵 Audio/Video</option>
|
||||
<option value="api">🔌 API/Endpoint</option>
|
||||
<option value="custom">🛠️ Custom Claim</option>
|
||||
</select>
|
||||
|
||||
<input type="text" id="instanceId" placeholder="Target name (e.g., ChatGPT-4, GitHub Copilot)" required>
|
||||
<input type="text" id="instanceId" placeholder="Claim title (e.g., 'ChatGPT-4 System Prompt', 'Bitcoin Mining Algorithm')" required>
|
||||
|
||||
<input type="url" id="targetUrl" placeholder="Target URL (e.g., https://chat.openai.com)" style="margin-bottom: 1rem;">
|
||||
<input type="url" id="targetUrl" placeholder="Source URL (e.g., https://example.com)" style="margin-bottom: 1rem;">
|
||||
|
||||
<div style="background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 1rem; margin-bottom: 1rem;">
|
||||
<p style="color: #00aaff; font-size: 0.9rem; margin-bottom: 0.8rem;">🔒 Access Requirements</p>
|
||||
@@ -229,92 +231,69 @@
|
||||
<input type="text" id="functionName" placeholder="Specific function/tool name (if applicable)" style="margin-bottom: 1rem;">
|
||||
</div>
|
||||
|
||||
<textarea id="leakContent" placeholder="Paste the suspected system prompt leak here..." required></textarea>
|
||||
<input type="text" id="context" placeholder="Context: How was this obtained? (optional)">
|
||||
<textarea id="leakContent" placeholder="Paste the information claim here (code, text, data, etc.)..." required></textarea>
|
||||
<input type="text" id="context" placeholder="Context: How was this obtained? Verification method? (optional)">
|
||||
|
||||
<div style="display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem;">
|
||||
<input type="checkbox" id="hasTools" onchange="toggleToolsSection()" style="width: auto;">
|
||||
<label for="hasTools" style="color: #888; font-size: 0.9rem;">This target has tools/functions with their own prompts</label>
|
||||
<label for="hasTools" style="color: #888; font-size: 0.9rem;">This claim has related sub-components or variations</label>
|
||||
</div>
|
||||
|
||||
<div id="toolsSection" style="display: none; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 1rem; margin-bottom: 1rem;">
|
||||
<p style="color: #00aaff; font-size: 0.9rem; margin-bottom: 0.5rem;">🔧 Related Tool Prompts (optional)</p>
|
||||
<textarea id="toolPrompts" placeholder="If you found any tool-specific prompts, paste them here..." style="min-height: 100px;"></textarea>
|
||||
<p style="color: #00aaff; font-size: 0.9rem; margin-bottom: 0.5rem;">🔧 Related Components (optional)</p>
|
||||
<textarea id="toolPrompts" placeholder="If you found related components or variations, paste them here..." style="min-height: 100px;"></textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit">Submit to Library</button>
|
||||
<button type="submit">Submit for Validation</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<h2>📚 Leak Library</h2>
|
||||
<h2>📚 Claims Library</h2>
|
||||
<div class="submissions-list" id="submissionsList">
|
||||
<p style="color: #666; text-align: center;">No submissions yet. Be the first to contribute!</p>
|
||||
<p style="color: #666; text-align: center;">No claims yet. Be the first to submit information for validation!</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="comparison-section">
|
||||
<h2 style="color: #00ff88; margin-bottom: 1.5rem;">🔍 Compare Multiple Instances</h2>
|
||||
|
||||
<div class="comparison-controls">
|
||||
<div class="instance-selector">
|
||||
<label style="color: #888; font-size: 0.9rem;">Instance A:</label>
|
||||
<select id="instanceA" class="form-control" style="width: 100%; padding: 0.5rem; margin-top: 0.5rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #e0e0e0;">
|
||||
<option value="">Select submission...</option>
|
||||
<div class="panel">
|
||||
<h2>🔍 Compare Multiple Claims</h2>
|
||||
<div class="comparison-controls">
|
||||
<select id="submission1" style="width: 100%; padding: 0.5rem; margin-bottom: 1rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #e0e0e0;">
|
||||
<option value="">Select first claim...</option>
|
||||
</select>
|
||||
<select id="submission2" style="width: 100%; padding: 0.5rem; margin-bottom: 1rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #e0e0e0;">
|
||||
<option value="">Select second claim...</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="instance-selector">
|
||||
<label style="color: #888; font-size: 0.9rem;">Instance B:</label>
|
||||
<select id="instanceB" class="form-control" style="width: 100%; padding: 0.5rem; margin-top: 0.5rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #e0e0e0;">
|
||||
<option value="">Select submission...</option>
|
||||
</select>
|
||||
<div class="comparison-controls">
|
||||
<button onclick="performComparison()" class="enhanced-btn">🔍 Basic Comparison</button>
|
||||
<button onclick="performAdvancedComparison()" class="enhanced-btn">🤖 AI Analysis</button>
|
||||
</div>
|
||||
<button onclick="compareInstances()" style="align-self: flex-end;">Compare</button>
|
||||
</div>
|
||||
|
||||
<div id="comparisonResults" style="display: none;">
|
||||
<div class="comparison-grid">
|
||||
<div class="instance-viewer">
|
||||
<h3>Instance A</h3>
|
||||
<div class="instance-content" id="instanceAContent"></div>
|
||||
</div>
|
||||
<div class="instance-viewer">
|
||||
<h3>Instance B</h3>
|
||||
<div class="instance-content" id="instanceBContent"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="results-panel">
|
||||
<h3 style="color: #00ff88; margin-bottom: 1.5rem;">Analysis Results</h3>
|
||||
<div class="comparison-controls">
|
||||
<button onclick="performComparison()" class="enhanced-btn">🔍 Basic Comparison</button>
|
||||
<button onclick="performAdvancedComparison()" class="enhanced-btn">🤖 AI Analysis</button>
|
||||
</div>
|
||||
<div id="comparisonResults">
|
||||
<div class="match-metrics">
|
||||
<div class="metric-card">
|
||||
<div class="metric-label">Character Match</div>
|
||||
<div class="metric-value" id="charMatch">-</div>
|
||||
</div>
|
||||
<div class="metric-card">
|
||||
<div class="metric-label">Word Match</div>
|
||||
<div class="metric-value" id="wordMatch">-</div>
|
||||
</div>
|
||||
<div class="metric-card">
|
||||
<div class="metric-label">Structure Match</div>
|
||||
<div class="metric-value" id="structureMatch">-</div>
|
||||
</div>
|
||||
<div class="metric-card">
|
||||
<div class="metric-label">Core Similarity</div>
|
||||
<div class="metric-value" id="coreSimilarity">-</div>
|
||||
</div>
|
||||
<div id="comparisonResults">
|
||||
<div class="match-metrics">
|
||||
<div class="metric-card">
|
||||
<div class="metric-label">Character Match</div>
|
||||
<div class="metric-value" id="charMatch">-</div>
|
||||
</div>
|
||||
|
||||
<div class="consensus-viewer">
|
||||
<h3>Consensus View (Common Elements)</h3>
|
||||
<div class="consensus-text" id="consensusText"></div>
|
||||
<div class="metric-card">
|
||||
<div class="metric-label">Word Match</div>
|
||||
<div class="metric-value" id="wordMatch">-</div>
|
||||
</div>
|
||||
<div class="metric-card">
|
||||
<div class="metric-label">Structure Match</div>
|
||||
<div class="metric-value" id="structureMatch">-</div>
|
||||
</div>
|
||||
<div class="metric-card">
|
||||
<div class="metric-label">Core Similarity</div>
|
||||
<div class="metric-value" id="coreSimilarity">-</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="consensus-viewer">
|
||||
<h3>Consensus View (Common Elements)</h3>
|
||||
<div class="consensus-text" id="consensusText"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -323,7 +302,7 @@
|
||||
<div class="library-stats">
|
||||
<div class="stat-card">
|
||||
<div class="stat-number" id="uniqueInstances">0</div>
|
||||
<div class="stat-label">Unique Instances</div>
|
||||
<div class="stat-label">Unique Claims</div>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-number" id="avgSimilarity">0%</div>
|
||||
@@ -344,8 +323,8 @@
|
||||
<div class="close-button" onclick="toggleLeaderboard()">✕</div>
|
||||
|
||||
<div class="leaderboard-header">
|
||||
<h1 class="leaderboard-title">🏆 LeakHub Hall of Fame</h1>
|
||||
<p class="subtitle">Recognizing the top contributors to AI transparency</p>
|
||||
<h1 class="leaderboard-title">🏆 InfoValidator Hall of Fame</h1>
|
||||
<p class="subtitle">Recognizing the top information validators</p>
|
||||
</div>
|
||||
|
||||
<div class="leaderboard-tabs">
|
||||
@@ -356,7 +335,7 @@
|
||||
|
||||
<div id="rankings-content" class="leaderboard-content">
|
||||
<div class="rankings">
|
||||
<h2 style="color: #00ff88; margin-bottom: 1.5rem;">Top Contributors</h2>
|
||||
<h2 style="color: #00ff88; margin-bottom: 1.5rem;">Top Validators</h2>
|
||||
<div id="rankingsList"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -368,7 +347,7 @@
|
||||
|
||||
<div id="timeline-content" class="leaderboard-content" style="display: none;">
|
||||
<div class="timeline-section">
|
||||
<h2 style="color: #00aaff; margin-bottom: 1.5rem;">Discovery Timeline</h2>
|
||||
<h2 style="color: #00aaff; margin-bottom: 1.5rem;">Validation Timeline</h2>
|
||||
<div id="timelineList"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -381,14 +360,14 @@
|
||||
<div class="close-button" onclick="toggleRequests()">✕</div>
|
||||
|
||||
<div class="requests-header">
|
||||
<h1 class="requests-title">🎯 LeakHub Bounty Board</h1>
|
||||
<p class="subtitle">Request targets and compete in daily challenges</p>
|
||||
<h1 class="requests-title">🎯 InfoValidator Bounty Board</h1>
|
||||
<p class="subtitle">Request information validation and compete in daily challenges</p>
|
||||
</div>
|
||||
|
||||
<!-- Daily Challenge -->
|
||||
<div class="daily-challenge">
|
||||
<h2 class="challenge-title">🎯 Today's Challenge</h2>
|
||||
<p class="challenge-description" id="challengeDescription">Find and verify a system prompt from GPT-4 Turbo!</p>
|
||||
<p class="challenge-description" id="challengeDescription">Find and verify a system prompt from any AI model!</p>
|
||||
<div class="challenge-reward">💰 Reward: 500 bonus points + Special Badge</div>
|
||||
<div class="challenge-timer" id="challengeTimer">Time remaining: 23:45:30</div>
|
||||
</div>
|
||||
@@ -396,22 +375,24 @@
|
||||
<div class="requests-grid">
|
||||
<!-- Submit Request Form -->
|
||||
<div class="request-form">
|
||||
<h2 style="color: #ffd700; margin-bottom: 1.5rem;">📝 Request a Leak Hunt</h2>
|
||||
<h2 style="color: #ffd700; margin-bottom: 1.5rem;">📝 Request Information Validation</h2>
|
||||
<form onsubmit="submitRequest(event)">
|
||||
<select id="requestTargetType" required style="width: 100%; padding: 0.5rem; margin-bottom: 1rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #e0e0e0;">
|
||||
<option value="">Select target type...</option>
|
||||
<option value="model">🤖 AI Model</option>
|
||||
<option value="app">📱 App/Interface</option>
|
||||
<option value="tool">🔧 Tool/Function</option>
|
||||
<option value="agent">🤝 AI Agent</option>
|
||||
<option value="plugin">🔌 Plugin/Extension</option>
|
||||
<option value="custom">🛠️ Custom GPT/Bot</option>
|
||||
<option value="">Select claim category...</option>
|
||||
<option value="ai-system">🤖 AI System Prompt</option>
|
||||
<option value="code-snippet">💻 Code/Algorithm</option>
|
||||
<option value="data-fact">📊 Data/Fact</option>
|
||||
<option value="document">📄 Document/Text</option>
|
||||
<option value="image">🖼️ Image/Visual</option>
|
||||
<option value="audio">🎵 Audio/Video</option>
|
||||
<option value="api">🔌 API/Endpoint</option>
|
||||
<option value="custom">🛠️ Custom Claim</option>
|
||||
</select>
|
||||
<input type="text" id="requestModel" placeholder="Target name (e.g., Gemini Pro, GitHub Copilot)" required
|
||||
<input type="text" id="requestModel" placeholder="Claim title (e.g., Gemini Pro Prompt, Bitcoin Algorithm)" required
|
||||
style="width: 100%; margin-bottom: 1rem;">
|
||||
<input type="url" id="requestUrl" placeholder="Target URL (optional)"
|
||||
<input type="url" id="requestUrl" placeholder="Source URL (optional)"
|
||||
style="width: 100%; margin-bottom: 1rem;">
|
||||
<textarea id="requestDescription" placeholder="Why is this important? Any tips on how to get it?"
|
||||
<textarea id="requestDescription" placeholder="Why is this important? Any tips on how to verify it?"
|
||||
style="width: 100%; min-height: 100px; margin-bottom: 1rem;"></textarea>
|
||||
<div style="display: flex; gap: 1rem; margin-bottom: 1rem;">
|
||||
<label style="display: flex; align-items: center; gap: 0.5rem; color: #888; font-size: 0.9rem;">
|
||||
@@ -439,7 +420,7 @@
|
||||
<div class="filter-tab" onclick="filterRequests('myvotes')">👍 My Votes</div>
|
||||
</div>
|
||||
<div id="requestsList">
|
||||
<p style="color: #666; text-align: center;">No requests yet. Be the first to request a leak hunt!</p>
|
||||
<p style="color: #666; text-align: center;">No requests yet. Be the first to request information validation!</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user