DarkShield AI – Project Story & Working Flow
Introduction
In today's digital world, sensitive files such as certificates, academic documents, financial records, and confidential reports are often stored on personal devices without strong protection. Even when files are hidden inside folders, unauthorized users can still copy, share, or misuse them.
DarkShield AI was developed to solve this problem by creating an intelligent secure vault that protects files using encryption, controlled access, activity monitoring, and automatic relocking mechanisms.
Problem Statement
Traditional file storage methods have several security limitations:
- Files remain accessible once the device is unlocked.
- Unauthorized users can copy or share confidential documents.
- No monitoring exists for file activities.
- Shared files often remain exposed after use.
- Users lack visibility into who accessed files and when.
These issues create risks for students, professionals, and organizations handling sensitive information.
Proposed Solution
DarkShield AI is a secure file protection platform that combines:
- AES-based encryption
- Password-protected vault access
- Time-controlled file availability
- User activity tracking
- Automatic relocking of files
- Security event logging
The system ensures that files remain protected before, during, and after access.
System Workflow
Step 1: Initialization
When DarkShield AI starts:
- Secure folders are created automatically.
- Security services are initialized.
- Encryption engine is activated.
- Activity logging is enabled.
- A unique session ID is generated.
The system displays:
- Normal timestamp
- Railway timestamp
- Security status
- Session information
Step 2: File Protection
Files placed inside the SAFE directory are automatically secured.
DarkShield AI:
- Reads each file.
- Encrypts it using AES encryption.
- Stores the encrypted version inside the LOCKED directory.
- Removes the original unencrypted copy.
Result:
Sensitive files remain inaccessible without authentication.
Step 3: User Authentication
To access protected files, users must enter the vault password.
Security controls include:
- Limited login attempts
- Access denial after repeated failures
- Session monitoring
Only authorized users can proceed.
Step 4: Secure File Selection
After successful authentication:
- All encrypted files are displayed.
- User selects the required file.
- Desired action is selected.
Available actions include:
- Copy
- Delete
- Move
- Export
- Share
- Rename
Step 5: AI-Based Security Explanation
Before processing the request:
DarkShield AI analyzes the selected operation and explains:
- What action is being performed
- Potential security implications
- Intended system behavior
This improves user awareness and transparency.
Step 6: Controlled File Access
The selected encrypted file is:
- Decrypted temporarily.
- Exported into the secure export folder.
- Made available only for the current session.
The original encrypted file remains protected.
Step 7: Timed Access Control
The user defines an access duration.
Example:
10 seconds
The system displays:
10 9 8 7 6
At 5 seconds:
⚠️ Security Warning
The user is informed that access will expire soon.
This prevents accidental exposure of sensitive data.
Step 8: Automatic Relocking
When the countdown reaches zero:
- Exported files are removed.
- Temporary access is terminated.
- Security vault is relocked automatically.
No manual intervention is required.
Step 9: Activity Logging
Every action is recorded with:
- Date
- Time
- Session ID
- File name
- User action
Example:
[2026-06-01 20:45:22] [SESSION:A4F9C7D1] [ACTION:EXPORT] [FILE:tcs.pdf]
This provides accountability and traceability.
Security Features
AES Encryption
Protects files from unauthorized access.
Password Authentication
Ensures only authorized users can enter the vault.
Time-Limited Access
Restricts file availability to a predefined duration.
Activity Tracking
Monitors user operations.
Automatic Relocking
Prevents files from remaining exposed.
Session Management
Generates unique identifiers for every access session.
Benefits
- Improved file confidentiality
- Reduced risk of unauthorized access
- Increased user awareness
- Secure temporary sharing
- Better auditability
- Lightweight and easy deployment
Future Enhancements
- Multi-factor authentication
- Facial recognition login
- Cloud backup integration
- Behavioral anomaly detection
- AI-powered threat prediction
- Secure USB device verification
- Blockchain-based audit logs
Conclusion
DarkShield AI transforms ordinary file storage into an intelligent security vault. By combining encryption, access control, monitoring, and automated protection mechanisms, the system provides a practical solution for safeguarding sensitive digital assets while maintaining usability and transparency.
Built With
- cryptography
- python
- xai
Log in or sign up for Devpost to join the conversation.