Breast cancer is caused by aberrant breast cells that proliferate and develop into tumors. Tumors have the potential to spread throughout the body and become lethal if ignored. Metastasis is the process by which invasive tumors move to neighboring lymph nodes or other organs. Metastasis can be lethal and perhaps fatal. The objective of our study was to elucidate the molecular mechanisms underlying the transition of Ductal Carcinoma In Situ (DCIS) to Invasive Ductal Carcinoma (IDC), with a particular focus on hub genes and potential therapeutic agents. Using Weighted Gene Co-expression Network Analysis (WGCNA), we built a comprehensive network combining clinical and phenotypic data from both DCIS and IDC. Modules within this network, correlated with specific phenotypic traits, were identified, and hub genes were identified as critical markers. Receiver Operating Characteristic (ROC) analysis assessed their potential as biomarkers, while survival curve analysis gauged their prognostic value. Furthermore, molecular docking predicted interactions with potential therapeutic agents. Ten hub genes—CDK1, KIF11, NUF2, ASPM, CDCA8, CENPF, DTL, EXO1, KIF2C, and ZWINT—emerged as pivotal fibroblast-specific genes potentially involved in the DCIS to IDC transition. These genes exhibited pronounced positive correlations with key pathways like the cell cycle and DNA repair, Molecular docking revealed Fisetin, an anti-inflammatory compound, effectively binding to both CDK1 and DTL underscoring their role in orchestrating cellular transformation. CDK1 and DTL were selected for molecular docking with CDK1 inhibitors, revealing effective binding of Fisetin, an anti-inflammatory compound, to both. Of the identified hub genes, DTL—an E3 ubiquitin ligase linked to the CRL4 complex—plays a central role in cancer progression, impacting tumor growth, invasion, and metastasis, as well as cell cycle regulation and epithelial-mesenchymal transition (EMT). CDK1, another hub gene, is pivotal in cell cycle progression and associated with various biological processes. In conclusion, our study offers insights into the complex mechanisms driving the transition from DCIS to IDC. It underscores the importance of hub genes and their potential interactions with therapeutic agents, particularly Fisetin. By shedding light on the interplay between CDK1 and DTL expression, our findings contribute to understanding the regulatory landscape of invasive ductal carcinoma and pave the way for future investigations and novel therapeutic avenues.