Abstract
Underground messaging platforms have become major redistribution hubs for exposed credentials, creating practical challenges for organizations seeking early detection of account compromise risks. This study presents a proposal of an OSINT-based pipeline for monitoring credential exposure in Telegram channels. The main purpose of the architecture is to evaluate if deterministic extraction coupled with operational security engineering enables stable, low-noise intelligence acquisition in volatile underground ecosystems. The main modules are presented, along with a discussion oriented to cyber threat intelligence and open-source intelligence characteristics.
1. Introduction
Telegram has increasingly operated as a redistribution hub for credential leaks originating from data breaches, stealer logs, and paste dumps. In practice, these channels exhibit high message volume, heterogeneous formats, and substantial noise, which complicates early detection of organization-relevant exposures. While the OSINT literature frequently emphasizes analytic enrichment and downstream intelligence products [1], sustained underground monitoring also introduces operational constraints that are rarely described in detail: avatar presence, platform enforcement (e.g., rate limiting and suspension), and attribution risk [2,3].
This paper adopts an applied engineering perspective. The goal is to present an architecture that enables a deterministic extraction pipeline, combined with explicit OPSEC controls that may sustain reliable intelligence acquisition in a semi-anonymous environment. In this sense, this article presents an architecture for a deterministic extraction pipeline with explicit OPSEC controls designed to support reliable intelligence collection in semi-anonymous environments. Its contributions are twofold: (i) a modular pipeline that transforms high-noise Telegram content into structured, domain-validated credential records, and (ii) an OPSEC-focused operational framework that enables stable, persistent collection without direct identity linkage.
2. Methodological Considerations and Pipeline Architecture
The pipeline follows an intelligence-cycle-oriented workflow in which OSINT is presented as the primary acquisition layer within a broader structured process. The workflow begins with the Direction phase, where monitoring requirements and domain priorities are defined, followed by Planning, which establishes the architectural and operational parameters of the system. Collection forms the continuous flow of raw messages and files intercepted from monitored Telegram channels. These data would move into the Processing stage, where filtering based on regex patterns and normalization are expected to reduce noise and structure the information. In the Analysis and Production phase, validated records would be organized for operational use, enabling contextual interpretation. Dissemination mechanisms would support controlled intelligence delivery, while Feedback would ensure iterative refinement of monitored domains, filters, and collection scope. This closed-loop structure is intended to systematically transform raw OSINT data into operationally relevant intelligence [4].
2.1. Architecture Overview
The architecture was designed considering three modules with clear functional separation of responsibilities: (i) data collection from Telegram, (ii) processing based on regular expressions (regex) for pattern extraction and validation, and (iii) structured persistence as JSON objects. Figure 1 presents the end-to-end architecture, highlighting the direct acquisition of data from monitored Telegram groups and the transformation of unstructured content into normalized outputs, with preservation of relevant fields and associated metadata. In addition, the architecture includes an indexing module that stores normalized records in Elasticsearch, enabling subsequent structured querying and analytical visualization in Kibana. The following sections provide a detailed description of each module.
Figure 1.
Pipeline architecture: collection, deterministic processing (regex + domain validation), and structured persistence.
2.2. Data Collection Module
The collection module will be implemented as a Python 3.14.8 agent interacting with Telegram through MTProto library. The collector is supposed to continuously ingest message text, attached files, and metadata (timestamp, source channel/group identifier, and author identifier when available). To balance coverage and sustainability, the agent will operate over a rolling time window, prioritizing recent activity while avoiding redundant historical re-ingestion. Figure 2 depicts what will be the collector control flow and its integration with persistence mechanisms.
Figure 2.
Collector control flow for Telegram ingestion and metadata capture.
2.3. Deterministic Processing and Normalization Module
This module will be designed to process and apply deterministic rules based on regular expressions to identify credential structures in message bodies and extracted file contents (e.g., email–password and username–password patterns). When it detects artifacts, they will be then validated through a binary organizational-domain check to ensure that only credentials aligned with the predefined monitoring scope proceed to indexing. Figure 3 summarizes the processing workflow, including multi-format parsing steps.
Figure 3.
Deterministic processing workflow: extraction via regex, multi-format parsing, and binary domain validation.
Structured persistence will be implemented via normalized JSON objects. JSON will be adopted to preserve field-level consistency (e.g., credential type, user/email, password, source channel, timestamp, and file origin), improve auditability, and enable deterministic querying and downstream interoperability. In practice, the schema is supposed to reduce ambiguity common to unstructured monitoring and prevent loss of provenance context during ingestion and later triage.
2.4. Operational Security (OPSEC) Engineering Module
Sustained underground monitoring requires explicit operational security controls because Telegram collection depends on a persistent user account and is subject to both enforcement mechanisms and attribution risks [5,6].
Identity exposure will be mitigated through a dedicated operational avatar isolated from any personal digital footprint. Account registration will be performed using a virtual number to reduce linkage to personally identifiable subscriber records. Platform detection risks will be addressed through asynchronous execution and conservative request scheduling, including randomized polling intervals and exponential backoff under rate limiting signals. These measures will be treated as architectural controls rather than implementation details, since operational sustainability directly impacts the feasibility of long-term intelligence acquisition.
3. Discussion and Future Work
This paper presented the conceptual design of an architectural pipeline oriented to OPSEC and OSINT for monitoring exposed credentials in underground Telegram channels. The proposed architecture is structured around three core modules with clearly defined responsibilities: a collection module responsible for controlled acquisition of messages and metadata from monitored groups; a processing module based on regex-driven pattern extraction and organizational-domain validation; and a structured persistence module that normalizes validated artifacts into JSON objects while preserving provenance fields.
Future work will focus on implementing the full pipeline and extending it with a visualization and alerting layer to support operational triage and incident response workflows, including dashboards and automated notifications. This downstream layer will be built upon the structured JSON outputs generated by the core modules, ensuring separation between extraction logic and analytical consumption. The proposed expansion will enhance analytical usability without altering the foundational OPSEC controls or the deterministic extraction mechanisms introduced in this study.
Author Contributions
Conceptualization, N.A.M. and R.d.O.A.; methodology, N.A.M.; software, N.A.M. and B.M.d.A.A.; validation, B.M.d.A.A.; writing—original draft preparation, N.A.M.; writing—review and editing, G.D.A.N., F.L.L.d.M. and R.d.O.A.; supervision, R.d.O.A. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by TED 01/2021 of the Attorney General’s Office of the National Treasury (PGFN), TED 01/2021 of the National Secretariat of Social Assistance (SNAS/DGSUAS/CGRS), TED 02/2024 of the Regional Electoral Court (TRE/DF), TED 33/2023 of the Secretariat of Digital Government (SGD) of the Ministry of Management and Innovation in Public Services (MGI), the SISTER City Project (Grant 625/2022, FAP/DF), the SISPRO-DF Project (Grant 497/2023, FAP/DF), and the Support Foundation of the Federal District (FAP/DF). The APC was funded by the Laboratory of Technologies for Decision Making (LATITUDE) of the University of Brasília (UnB).
Institutional Review Board Statement
Not applicable. This study presents the conceptual design of a monitoring architecture and did not involve human participants, animals, or the collection or processing of personal data. Any future deployment of the pipeline will be conducted in accordance with applicable ethical guidelines and data protection regulations, including the Brazilian General Data Protection Law (LGPD, Law No. 13,709/2018).
Informed Consent Statement
Not applicable. This study did not involve human participants.
Data Availability Statement
No new data were created or analyzed in this study. Data sharing is not applicable to this article.
Acknowledgments
The authors acknowledge the technical support provided by the Laboratory of Technologies for Decision Making (LATITUDE) of the University of Brasília (UnB).
Conflicts of Interest
The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
References
- Williams, H.J.; Blum, I. Defining Second Generation Open Source Intelligence (OSINT) for the Defense Enterprise; RAND Corporation: Santa Monica, CA, USA, 2018. [Google Scholar]
- Tundis, A.; Ruppert, S.; Mühlhäuser, M. A Feature-Driven Method for Automating the Assessment of OSINT Cyber Threat Sources. Comput. Secur. 2022, 113, 102576. [Google Scholar] [CrossRef] [Scilit]
- Pastor-Galindo, J.; Nespoli, P.; Gómez Mármol, F.; Martínez Pérez, G. The Not Yet Exploited Goldmine of OSINT: Opportunities, Open Challenges and Future Trends. IEEE Access 2020, 8, 10282–10304. [Google Scholar] [CrossRef] [Scilit]
- Garkava, T.; Moneva, A.; Leukfeldt, E.R. Stolen Data Markets on Telegram: A Crime Script Analysis and Situational Crime Prevention Measures. Trends Organ. Crime 2024. [Google Scholar] [CrossRef] [Scilit]
- Tippe, P.; Deckers, C. Unmixing the mix: Patterns and challenges in Bitcoin mixer investigations. Forensic Sci. Int. Digit. Investig. 2025, 52, 301876. [Google Scholar] [CrossRef] [Scilit]
- Pastor-Galindo, J.; Sandlin, H.-Â.; Gómez Mármol, F.; Bovet, G.; Martínez Pérez, G. A Big Data Architecture for Early Identification and Categorization of Dark Web Sites. Future Gener. Comput. Syst. 2024, 157, 67–81. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.


