To prepare the paste, combine the salt and minced garlic in a mortar and pestle, and pound to form a paste. Add chile, galangal, lemongrass, and lime leaves, one at a time, until each ingredient is incorporated into paste.
To prepare stir-fry, heat a wok or large nonstick skillet coated with cooking spray over medium-high heat. Add paste, and stir-fry for 30 seconds (fumes may cause eyes and throat to burn slightly). Add beef; stir-fry for 3 minutes. Add beans; stir-fry for 1 minute. Add tomatoes, sugar, fish sauce, and vinegar; stir-fry for 1 minute or until beef reaches desired degree of doneness. Stir in basil.
Wine Note: Here's a great example of a beef dish laced with lots of green flavors - in this case, lemongrass, lime and basil. A Sauvignon Blanc, itself sporting green notes, would pair wonderfully with this dish. Try Jepson Sauvignon Blanc 1999 (Mendocino County, California; $11).