Cyber Shield AI is an interactive chatbot powered by Google's Gemini AI, specifically designed to provide expert guidance on cybersecurity topics. The application offers real-time responses to user queries about various aspects of cybersecurity, making complex security concepts more accessible.
-
🛡️ Specialized Cybersecurity Focus
- Passwords & Authentication
- Zero Trust Security
- Malware & Ransomware Protection
- Network Security (Firewalls, VPN, IDS)
- Phishing & Social Engineering
- Data Privacy & Encryption
- Incident Response
- Web & Cloud Security
- Mobile & IoT Security
- Compliance & Regulations
- Emerging Threats
- Security Tools
- DevSecOps
-
💬 Interactive Chat Interface
- Real-time responses
- Message history
- Auto-scrolling chat
- Loading states
- Error handling
-
🎨 Modern UI/UX
- Responsive design
- Dark theme
- Clean typography
- Smooth animations
- Professional iconography
- Frontend Framework: React 18.3
- Language: TypeScript
- Styling: Tailwind CSS
- Icons: Lucide React
- AI Integration: Google Generative AI (Gemini)
- Build Tool: Vite
- Development Tools: ESLint
cyber-shield-ai/
├── src/
│ ├── https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip # Main application component
│ ├── https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip # Application entry point
│ └── https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip # Global styles
├── public/ # Static assets
├── https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip # HTML template
├── https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip # Project dependencies
├── https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip # TypeScript configuration
├── https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip # Vite configuration
└── https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip # Project documentation
-
Clone the Repository
git clone <repository-url> cd cyber-shield-ai
-
Environment Setup Create a
.envfile in the root directory:VITE_GEMINI_API_KEY=your_gemini_api_key -
Install Dependencies
npm install
-
Start Development Server
npm run dev
-
Build for Production
npm run build
VITE_GEMINI_API_KEY: Google Gemini AI API key (Required)
The application uses Google's Gemini AI API for processing cybersecurity queries. The integration is handled in https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip through the getGeminiResponse function:
const genAI = new GoogleGenerativeAI(https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip);
async function getGeminiResponse(question: string): Promise<string> {
const model = https://raw.githubusercontent.com/SaiVigneshchalnati/cyber_shield_ai/main/semicrome/shield-cyber-ai-1.5.zip({ model: "gemini-pro" });
// ... process response
}- Manages chat state and user interactions
- Handles message history
- Implements auto-scrolling
- Processes AI responses
- Renders chat interface
interface Message {
type: 'user' | 'bot';
content: string;
}The application uses Tailwind CSS for styling with a custom dark theme:
- Background colors: gray-900, gray-800
- Accent colors: cyan-500, cyan-600
- Text colors: gray-100
- Responsive design breakpoints
- Flexible chat container layout
The application implements comprehensive error handling:
- API connection errors
- Invalid responses
- Network issues
- Input validation
-
API Key Protection
- Environment variables for sensitive data
- No client-side exposure of API keys
-
Input Sanitization
- User input validation
- Empty message prevention
- Rate limiting through UI disabled states
-
React Optimizations
- Efficient state management
- Memoized callbacks
- Optimized re-renders
-
UI/UX Optimizations
- Smooth scrolling
- Loading states
- Responsive design
- Efficient message rendering
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT License - feel free to use this project for personal or commercial purposes.
For support, please open an issue in the repository or contact the development team.
Built with ❤️ using React and Google's Gemini AI