Groundnuts are mostly contaminated with the mold Aspergillus flavus which produces a carcinogenic mycotoxin called as aflatoxin. It is very important to understand the genetic factors underlying its pathogenicity, regulation, and biosynthesis of secondary metabolites and animal toxicities, but it still lacks useful information due to certain gaps in the era of modern technology. Therefore, the present study was considered to determine the key genes and metabolites involved in the biosynthesis of aflatoxin by using a molecular approach in a virulent strain of Aspergillus. The whole genome sequence of highly toxic and virulent Aspergillus isolates JAM-JKB-B HA-GG20 revealed 3,73,54,834 bp genome size, 2, 26, 257 number of contigs with N50 value of 49,272 bp, 12,400 genes and 48.1% of GC contained respectively. The genome sequence was compared with other known aflatoxin producing and non-producing genome of Aspergillus spp. and 61 secondary metabolite (SM) gene clusters were annotated with the toxic strain JAM-JKB-BHA-GG20 which showed similarity with other Aspergillus spp. A total number of eight genes (ver-1, AflR, pksA, uvm8, omt1, nor-1, Vha and aflP) were identified related to biosynthesis of aflatoxin and ochratoxin. Also, 69 SSR with forward and reverse primers and 137 di and tri nucleotide motifs were identified in the nucleotide sequence region related to aflatoxin gene pathway. The genes and putative metabolites identified in this study are potentially involved in host invasion and pathogenicity. As such, the genomic information obtained in this study is helpful in understanding aflatoxin gene producing pathway in comparison to other Aspergillus spp. and predicted presence of other secondary metabolites clusters viz. Nrps, T1pks etc. genes associated with a biosynthesis of OTA mycotoxin.