This study evaluated the valorisation of two agro-industrial byproducts, defatted rice bran (DRB) and discarded surimi seafood crabsticks (DSSCs), as rearing substrates for the black soldier fly (BSF; Hermetia illucens L.) to enhance its nutritional value and ensure feed safety for food applications. Two feed types with five replicates were compared: a modified feed (MF, DRB:DSSCs = 9:1, w/w) and an organic waste mixture (OW). MF-fed insects exhibited faster larval development, higher protein content (8.81%) ( ) and improved essential-to-nonessential amino acid ratio (up to 93%), whereas OW-fed insects showed higher lipid accumulation. Arsenic derived from DRB remained within the European Union safety limits but warrants monitoring for potential bioaccumulation. Transcriptomic analysis revealed 711, 3757 and 5178 differentially expressed genes (DEGs) in larvae, prepupae and pupae, respectively. In MF-fed insects, genes associated with energy metabolism and growth regulation, such as ATP5A1, LYZ, LYZ2, HSPA5-BIP, GST, SOD1, TNNI3, TPM1, TRPL and EYS, were upregulated, whereas those associated with lipid metabolism and immune responses, such as LIPA, CAMK, SPZ and JUN, were downregulated. Kyoto Encyclopaedia of Genes and Genomes enrichment analysis indicated the activation of oxidative phosphorylation, protein digestion and absorption and insect hormone biosynthesis pathways. These molecular responses align with enhanced growth and nutrient assimilation in MF-fed BSFs. Therefore, the integration of rice bran and surimi seafood byproducts can support efficient, safe and sustainable BSF production for circular food systems.