Foam stability and the improvement of its transport from fracture to matrix have been two major issues in the field of foam injection into fractured petroleum reservoirs as an enhanced oil recovery (EOR) method. In the current study, we have stabilized CO2 foam using surface-modified silica nanoparticles. The modification of nanoparticles was performed using 3-aminopropyltriethoxysilane (APTES). They were characterized by the FTIR analysis and contact angle measurements. After that, foam generation and stability were investigated using static experiments. The experiments were performed at different concentrations of NPs (0.04 to 0.20 mass%), two concentrations of SDS (0.236 and 0.472 mass%), and in the presence and absence of MgCl2 salt. Additionally, the oil recovery and fracture-matrix transport properties of various injected fluids, including CO2 gas, surfactant solution, and NPs stabilized foams were investigated and compared using flooding experiments in a natively oil-wet, fractured micromodel.The results indicate that the surface modification of Silica using the APTES makes the nanoparticles more oil-wet in oil-water system and more gas-wet in air-water system. This, in turn, amplifies the migration of the modified Silica (MS) toward the water-gas interface and enhances the CO2 foam stability. The occurrence of this mechanism could be verified by foam stability experiments, where switching the foam stabilizer from Silica to MS nanoparticles led to a 33.3% increase in the maximum foam half-life. The foamability is not affected by the type of NPs; however, the foaminess is reduced due to the surface adsorption of SDS on the nanoparticle surfaces.Moreover, the stability of foams is reduced in the presence of Mg2+ ions. The reason is investigated utilizing the Mg2+ ion concentration measurements via the atomic adsorption method. Finally, the micromodel flooding indicates that the order of recovery enhancement potential of the CO2 foam stabilizers is SDS-MS > SDS-Silica>SDS. We will discuss the pore-scale phenomena, which lead to such results. We have found that during foam flow in the fractures, the large size bubbles act as viscose fluid and push the relatively smaller bubbles into the matrixes pores. This fracture-matrix transport is followed by the stable foams, and a foam bridge is formed between the fracture and matrix. Additionally, foam front is disintegrated into gas bubbles and water droplets containing surfactants and NPs, which can penetrate the dead-end pores and displace the oil in them through the formation of W/O emulsion.