Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM65900
Volume:
10 |
7 |
Jul 2026
Pages:
1-11
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.

Department of Computer Science
ST PAULS COLLEGE

Department of Computer Science
ST PAULS COLLEGE

Department of Computer Science
ST PAULS COLLEGE
Contemporary social media architectures suffer from a foundational security weakness: once an attacker successfully authenticates using stolen credentials or hijacks an active session token, conventional perimeter-based security systems produce no alerts and apply no additional identity checks. This paper introduces InstaSecure, a Django-powered multi-layer active-defense web platform engineered to eliminate this blind spot through real-time, context-sensitive authentication. The framework deploys two concurrent monitoring channels. The Geospatial Sentinel Engine leverages the spherical Haversine formula to calculate physical travel velocity between successive user post locations. Velocities surpassing 800–900 km/h — the upper boundary of commercial air travel — activate Impossible Travel anomaly alerts. A scikit-learn Isolation Forest algorithm augments this by profiling behavioral baselines across rolling 50-post windows, generating continuous anomaly scores to identify covert account takeover attempts. Simultaneously, an inline Natural Language Processing (NLP) subsystem intercepts all user-submitted comment payloads within volatile runtime memory prior to database storage, applying offline token-level classification to suppress harmful and offensive content by setting is_hidden = True. Platform-wide AES-256 symmetric field-level encryption via the Fernet specification guarantees that GPS coordinates, messages, post captions, and comment strings are persisted only as cryptographically opaque ciphertext. Once a threat is confirmed, an automated containment pipeline revokes session credentials, quarantines the affected profile, and transmits time-limited One-Time Passwords through the Twilio SMS gateway. A centralized Security Operations Center (SOC) dashboard consolidates immutable forensic telemetry and generates ReportLab-produced PDF audit reports. Validation confirmed NLP moderation at F1 = 0.924, Haversine precision at ±0.08 km, and zero plaintext data storage across all penetration testing scenarios.
KEYWORDS
This paper has presented InstaSecure, a comprehensive zero-trust active-defense social media framework that fundamentally redefines the security paradigm for web applications. By dismantling the static perimeter defense model and instituting continuous, context-aware authentication across every user transaction, InstaSecure eliminates the post-compromise blindness that permits Account Takeover attacks to propagate undetected within authenticated sessions. The integrated dual-layer Sentinel Engine — combining the spherical Haversine formula for deterministic Impossible Travel detection with scikit-learn's Isolation Forest for sub-threshold behavioral anomaly scoring — achieved 100% detection accuracy on cross-continental ATO scenarios and 87% detection on sub-threshold cases that would have evaded a velocity-only enforcement model. The inline NLP moderation subsystem attained a weighted F1-score of 0.940 at under 2ms processing latency — a 400× improvement over cloud API alternatives — demonstrating that high-accuracy content moderation can be delivered offline within the application runtime without external dependencies. Platform-wide AES-256 field-level encryption produced zero plaintext data exposure across all database exfiltration tests, validating the zero-knowledge architecture under realistic breach conditions. The automated incident response pipeline achieved mean containment within 131ms of anomaly detection, compared to the industry-standard average of 197 days for manual breach identification on conventional platforms. Comprehensive penetration testing confirmed 100% resistance to SQL injection, CSRF, XSS, role escalation, session replay, and media URL exfiltration attacks. InstaSecure demonstrates that enterprise-grade continuous authentication — encompassing mathematical geospatial physics, machine learning behavioral profiling, semantic content moderation, zero-knowledge cryptography, and automated multi-factor incident response — can be implemented within a standard Django framework at minimal operational cost, without degrading the frictionless user experience expected of modern social media platforms. The quantitative results establish a technically validated blueprint for proactive, automated threat containment applicable across any high-value web application ecosystem requiring real-time identity integrity assurance.
1. Stolfo, S. J., Salem, M. B., & Keromytis, A. D. (2012). Fog computing: Mitigating insider data theft attacks in the cloud. IEEE Security and Privacy Workshops, 125–128. 2. Ferretti, L., Furini, M., Mandreoli, F., Medici, M., & Ronchetti, M. (2019). Geospatial anomaly detection in enterprise SSO environments. IEEE Access, 9, 20499–20514. 3. Liu, F. T., Ting, K. M., & Zhou, Z.-H. (2008). Isolation forest. IEEE ICDM, 413–422. https://doi.org/10.1109/ICDM.2008.17 4. Chen, T., Lu, D., Kan, M.-Y., & Cui, P. (2021). Behavioral anomaly detection using Isolation Forest ensembles. IEEE Transactions on Knowledge and Data Engineering, 33(4), 1–14. 5. Badjatiya, P., Gupta, S., Gupta, M., & Varma, V. (2017). Deep learning for hate speech detection in tweets. WWW Companion, 759–760. 6. Davidson, T., Warmsley, D., Macy, M., & Weber, I. (2017). Automated hate speech detection and offensive language. AAAI ICWSM, 11(1), 512–515. 7. National Institute of Standards and Technology. (2001). Advanced Encryption Standard (AES) (FIPS 197). U.S. Department of Commerce. 8. Python Cryptography Authority. (2023). Fernet symmetric encryption documentation. https://cryptography.io/en/latest/
Publication Date
7/8/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
6
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...