Endophytic fungi are a diverse group of microorganisms that colonize the inter- or intracellular spaces of plants and exhibit mutual benefits. Their interactions with the host plant and other microbiomes are multidimensional and play a crucial role in the production of secondary metabolites. We screened bioactive compounds present in the extracts of Aspergillus flavus, an endophytic fungus isolated from the roots of the medicinal grass Cynodon dactylon, for its anticancer potential. An in vitro analysis of the Ethyl acetate extract from A. flavus showed significant cytostatic effects (IC50: 16.25 μg/mL) against breast cancer cells (MCF-7). A morphological analysis of the cells and a flow cytometry of the cells with annexin V/Propidium Iodide suggested that the extract induced apoptosis in the MCF-7 cells. The extract of A. flavus increased reactive oxygen species (ROS) generation and caused a loss of mitochondrial membrane potential in MCF-7 cells. To identify the metabolites that might be responsible for the anticancer effect, the extract was subjected to a gas chromatography-mass spectrometry (GC-MS) analysis. Interestingly, nine phytochemicals that induced cytotoxicity in the breast cancer cell line were found in the extract. The in silico molecular docking and molecular dynamics simulation studies revealed that two compounds, 2,4,7-trinitrofluorenone and 3α, 5 α-cyclo-ergosta-7,9(11), 22t-triene-6beta-ol exhibited significant binding affinities (−9.20, and −9.50 Kcal/mol, respectively) against Bcl-2, along with binding stability and intermolecular interactions of its ligand-Bcl-2 complexes. Overall, the study found that the endophytic A. flavus from C. dactylon contains plant-like bioactive compounds that have a promising effect in breast cancer.