The mission to Endor took place during the Clone Wars.
Aayla Secura went searching for the missing squad of clones when a B1 battle droid ambushed her. Aayla quickly subdued the droid by slicing both of its arms and legs with her lightsaber. While questioning the droid about the missing squad of clones, an Ewok shot a tranquilizer dart in her neck.
Aayla awoke to find herself tied up. She asked the droid what was happening, and the droid replied sarcastically that the Ewoks were going to eat her. A few minutes later the Ewok leader pointed at a picture of the beast in the mouth of the mountain. The battle droid translated, saying that they thought she was a goddess and were asking her to slay the beast in the mountain.
It later turned out a giant beast killed all the clone troopers and destroyed all the Confederacy of Independent Systems droids. However, Secura was able to kill the creature, but the mouthy B1 battle droid was crushed.