This study aimed to characterize endophytic bacteria isolated from legume nodules and roots in the rhizosphere soils of Acacia trees in Morocco’s arid regions. The focus was on identifying bacterial strains with plant growth-promoting rhizobacteria (PGPR) traits and antibiotic resistance, which could enhance legume productivity under various abiotic stresses. Autochthonous legumes were used to harbor the endophytic bacteria, including chickpea (Cicer arietinum), faba bean (Vicia faba), lentil (Lens culinaris), and common bean (Phaseolus vulgaris). In a previous study, seventy-two isolates were obtained, and molecular characterization grouped them into twenty-two bacterial isolates. These twenty-two bacterial isolates were then further analyzed for their antibiotic resistance and key PGPR traits, such as phosphate solubilization, indole-3-acetic acid (IAA) production, and siderophore production. The results revealed that 86.36% of the isolates were resistant to erythromycin, 45.45% to ciprofloxacin, 22.73% to ampicillin-sulbactam, and 9.09% to tetracycline, with ciprofloxacin and tetracycline being the most effective. All isolates produced IAA, with HN51 and PN105 exhibiting the highest production at 6 µg of IAA per mg of protein. The other isolates showed varying levels of IAA production, ranging from moderate to low. Siderophore production, assessed using CAS medium, indicated that the strains PN121, LR142, LNR146, and HR26 exhibited high production, while the rest demonstrated moderate to low capacities. Additionally, 18.2% of the isolates demonstrated phosphate solubilization on YED-P medium, with PR135 and LNR135 being the most efficient, achieving solubilization indices of 2.14 and 2.13 cm, respectively. LR142 and LNR146 showed a moderate solubilization efficiency. Overall, these findings indicate that these isolated endophytic bacteria possess significant potential as biofertilizers, owing to their antibiotic resistance, IAA production, siderophore production, and phosphate solubilization abilities. These characteristics position them as promising candidates for enhancing legume growth under abiotic stress and contributing to sustainable agriculture in arid regions.